soutzis / Cryptanalysis-Helper

A small, cross-platform utility to assist with basic cryptanalysis.
0 stars 0 forks source link

Add support for Unicode (for Stream Ciphers) #2

Closed soutzis closed 4 years ago

soutzis commented 4 years ago

Currently, the application only supports the 128 ASCII characters. If a stream cipher contains cipher symbols that are not part of the standard ASCII table, decrypting Stream Ciphers will not work. It uses the primitive char to convert integers/bytes into characters and the maximum value is 0xFFFF.

soutzis commented 4 years ago

The primitive char and byte are no longer used to hold each character of the cipher. Instead, each code-point is transformed into a char array with java.lang.Character.toChars(int codePoint), which handles cases that the code-point is a unicode (UTF-16) symbol.