Online text binning tool

I was doing my crypto homework and found that there was no text binning tool available online. Hence, I decided to write my own. A text binning tool is useful for:

  1. Encryption using a rail cipher
  2. Cryptanalysis of a vigenere cipher after you know the key length - useful to separate each bin so you can calculate the Index of Coincidence individually

The entire computation is done in javascript and no information about the ciphertext or plaintext is sent back to my server. Feel free to encrypt your deepest darkest secrets. For the paranoid, you can even disconnect from the internet after the page has loaded.

1
    thisisasampleinput

Sample output with length 3

1
2
3
4
5
6
    Bin 0:
    TSAMEP
    Bin 1:
    HISPIU
    Bin 2:
    ISALNT