@@ -33,7 +32,7 @@ from ansible.errors import AnsibleError
...
@@ -33,7 +32,7 @@ from ansible.errors import AnsibleError
fromhashlibimportsha256
fromhashlibimportsha256
frombinasciiimporthexlify
frombinasciiimporthexlify
frombinasciiimportunhexlify
frombinasciiimportunhexlify
fromsiximportbinary_type,PY3,text_type
fromsiximportPY3
# Note: Only used for loading obsolete VaultAES files. All files are written
# Note: Only used for loading obsolete VaultAES files. All files are written
# using the newer VaultAES256 which does not require md5
# using the newer VaultAES256 which does not require md5
...
@@ -95,8 +94,9 @@ HAS_ANY_PBKDF2HMAC = HAS_PBKDF2 or HAS_PBKDF2HMAC
...
@@ -95,8 +94,9 @@ HAS_ANY_PBKDF2HMAC = HAS_PBKDF2 or HAS_PBKDF2HMAC
CRYPTO_UPGRADE="ansible-vault requires a newer version of pycrypto than the one installed on your platform. You may fix this with OS-specific commands such as: yum install python-devel; rpm -e --nodeps python-crypto; pip install pycrypto"
CRYPTO_UPGRADE="ansible-vault requires a newer version of pycrypto than the one installed on your platform. You may fix this with OS-specific commands such as: yum install python-devel; rpm -e --nodeps python-crypto; pip install pycrypto"