toebes / ciphers

Cipher Generators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Going to the Xenocrypt from the pull down menu causes a crash when entering accented characters

toebes opened this issue · comments

If you go to the test generation tools pulldown menu and select Xenocrypt, it brings you to:
https://toebes.com/codebusters/XenocryptEncrypt.html?cipherType=aristocrat
image

instead of clicking on the xenocrypt button on the main page which brings you to
https://toebes.com/codebusters/XenocryptEncrypt.html?cipherType=aristocrat&curlang=es
image

Note the difference of the curlang not being specified in the menu

Once there, change the language from English to Spanish

Then enter a plain text string of:
abcde üñéáíóúüñéáíóúüñéáíóúüñéáíóúüñéáíóúdx

and you should see an error.

The problem is that the state.replacement field is not set up to include the ñ character.

When changing the language, that field should be reinitialized to avoid the problem

Fixed! The issue was that it wasn't regenerating the encoding table when changing the language so it didn't have anything corresponding to ñ.