This is the complete class reference for this project
This is the class that allows the encryption and decryption of string using AES algorithm:
Provide encryption and decryption function for strings that use AES symmetric algorithm with CBC (which is compatible with crypto-js).
Padding implemented as per RFC 2315 PKCS#7 page 21
First base implementation for this class is taken from marcoslin gist.
Parameters: Raises ValueError:
if parameters are incorrect
Decrypt a Base64 string using AES algorithm (CFB mode)
Parameters: value (str) – Base64 String to decrypt Returns: String that represent the decrypted data with AES algorithm Return type: str
Encrypt a string using AES algorithm (CFB mode) and encode the result in Base64 to handle it easily
Parameters: value (str) – String to encrypt Returns: Base64 String that represent the binary data encrypted with AES algorithm Return type: str
Initialization vector used by this class
Returns: 32 bytes hexadecimal string containing the initialization vector used by the class Return type: str Raises ValueError: if invalid key is provided