cryptico
cryptico copied to clipboard
Do not support UTF-8
plaintext: "Mưa nắng là chuyện của mày, tao đéo quan tâm!!! Được không hả?"
after encrypt & decrypt: "MLa nZng là chuyn ca mày, tao ¢éo quan tâm!!! Sc không hÈ?"
I've just done a correction on my repository about utf-8 : https://github.com/jpfox/cryptico
Thank you. What's your solution? I'm using: Convert UTF-8 to ASCII, Encrypt-Decrypt - Convert ASCII to UTF-8. by using this script: http://stackoverflow.com/a/834529/2480623
I use unescape(encodeURIComponent(string))
and decodeURIComponent(escape(uriencoded))
to convert text before AES encryption and after decryption. It permits to switch easily to single byte encoding.
I made just few changes on original code : https://github.com/jpfox/cryptico/commit/73db107f8e1e0d59696e1aece9e7a2bc82268707
Thank jpfox !
@jpfox this will work with binary data instead of text?
@Elmapul no, I don't think so. If you need a project using password-derived-key to encrypt files, have a look to miniLock
@jpfox would you create a pull request to the upstream someday? otherwise I may do the chord.
You can use commit in previous comment to create a PR if you want. No problem for me.