anxolerd / vigenere-tool

https://anxolerd.github.io/vigenere-tool/
0 stars 0 forks source link

Encryption Issue with russian text. Example attached #1

Open stalkermn opened 7 years ago

stalkermn commented 7 years ago
2017-02-15 23 55 44
anxolerd commented 7 years ago

Yeah. Thanks for reporting.

This tool was created for usage in the environment, where were troubles with Cyrillic, so Cyrillic support was omitted. But i should probably dig into how can I fix this problem permanently (i.e. not for cyryllic only but for Chinese, emoji, and other character sets from unicode)

anxolerd commented 7 years ago

I've added some input validation in https://github.com/anxolerd/vigenere-tool/commit/ad2fd488bf4bccec958531ce7fda67953f256729 It should prevent undefined appearance.

However the question of encrypting/decrypting Cyrillic an other character sets is still open. If you have any ideas except just adding Cyrillic characters to the alphabet (which is not a good solution because it will fix the problem for a limited character set) i'll be glad to read them =)