Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Do not support UTF-8 #12

Open
SLyHuy opened this issue Aug 21, 2014 · 8 comments
Open

Do not support UTF-8 #12

SLyHuy opened this issue Aug 21, 2014 · 8 comments

Comments

@SLyHuy
Copy link

SLyHuy commented Aug 21, 2014

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à chuy�n c�a mày, tao ¢éo quan tâm!!! ��Sc không hÈ?"

@jpfox
Copy link

jpfox commented Jan 21, 2015

I've just done a correction on my repository about utf-8 : https://github.com/jpfox/cryptico

@SLyHuy
Copy link
Author

SLyHuy commented Jan 21, 2015

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

@jpfox
Copy link

jpfox commented Jan 22, 2015

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 :
jpfox@73db107

@b6g9
Copy link

b6g9 commented Sep 2, 2015

Thank jpfox !

@Elmapul
Copy link

Elmapul commented Nov 27, 2016

@jpfox this will work with binary data instead of text?

@jpfox
Copy link

jpfox commented Nov 28, 2016

@Elmapul no, I don't think so. If you need a project using password-derived-key to encrypt files, have a look to miniLock

@beenotung
Copy link

@jpfox would you create a pull request to the upstream someday? otherwise I may do the chord.

@jpfox
Copy link

jpfox commented Dec 10, 2017 via email

NexZhu added a commit to crpt/cryptico that referenced this issue Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants