This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PKCS7Encoder(): | |
""" | |
Technique for padding a string as defined in RFC 2315, section 10.3, | |
note #2 | |
""" | |
class InvalidBlockSizeError(Exception): | |
"""Raised for invalid block sizes""" | |
pass | |
def __init__(self, block_size=16): |