Changeset 15 for lib/bletchley/buffertools.py
- Timestamp:
- 11/25/12 18:44:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/bletchley/buffertools.py
r7 r15 117 117 ''' 118 118 padding = block_size - (len(buf) % block_size) 119 return buf + (chr(padding) * padding) 119 return buf + pkcs7Pad(padding) 120 121 def pkcs7Pad(length): 122 return chr(length) * length
Note: See TracChangeset
for help on using the changeset viewer.