Revision 8d5795b4 snf-cyclades-app/synnefo/db/aes_encrypt.py
b/snf-cyclades-app/synnefo/db/aes_encrypt.py | ||
---|---|---|
62 | 62 |
plaintext = plaintext[SALT_LEN:] |
63 | 63 |
|
64 | 64 |
if salt != pure_salt: |
65 |
# Can not decrtypt password
|
|
66 |
raise CorruptedPassword("Can not decrypt password. Check the key")
|
|
65 |
# Cannot decrtypt password |
|
66 |
raise CorruptedPassword("Cannot decrypt password. Check the key") |
|
67 | 67 |
else: |
68 | 68 |
return plaintext |
69 | 69 |
|
Also available in: Unified diff