Private module function.
(string, map_1, map_2)
| 336 | return map_2 |
| 337 | |
| 338 | def _encode(string, map_1, map_2): |
| 339 | 'Private module function.' |
| 340 | cache = '' |
| 341 | for character in string: |
| 342 | byte = map_1[ord(character)] |
| 343 | for shift in xrange(6, -2, -2): |
| 344 | cache += map_2[(byte >> shift) & 3][_crypt.randrange(64)] |
| 345 | return cache |
| 346 | |
| 347 | def _decode(string, map_1, map_2): |
| 348 | 'Private module function.' |
no test coverage detected