TestEncryptHelper¶
-
class
tests.test_crypto.
TestEncryptHelper
(methodName='runTest')[source]¶ Test
EncryptHelper
key generation, encryption, decryption and more-
__init__
(methodName='runTest') Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
Methods¶
Methods
Test that encrypt_str fails when using a corrupted key |
|
Test |
|
Test that decrypt_str fails when using the wrong key |
|
Test that is_encrypted returns True for encrypted data, and False for non-encrypted |
|
Test that password_key returns two different keys for two passwords with the same salt |
|
Test that password_key returns two different keys for passwords with different salts |
|
Test that password_key returns the same key when ran with the same arguments |
|
Test that we can reproduce the same key from password_key’s auto-generated salt |