mervick / aes-everywhere

Aes Everywhere - Cross Language AES 256 Encryption Library (Bash, Powershell, C#, Dart, GoLang, Java, JavaScript, Lua, PHP, Python, Ruby, Swift)
Other
474 stars 169 forks source link

fix python implementation of PKCS5 padding to support emojis and othe… #14

Closed johnjjung closed 5 years ago

johnjjung commented 5 years ago

…r special characters

johnjjung commented 5 years ago

Referencing https://github.com/mervick/aes-everywhere/issues/13

This PR will ensure that special characters will work properly

johnjjung commented 5 years ago

I also suggest that the test cases include special characters

Instead of

print(aes256().decrypt(aes256().encrypt("text", "pass"), "pass"))

Something like this:

print(aes256().decrypt(aes256().encrypt("text 🙂", "pass"), "pass"))

mervick commented 4 years ago

Thank you, now it fixed https://github.com/mervick/aes-everywhere/commit/96f560a594ba2ecd1d5a75bb208426d8cb0f0dbf