vigenereSecurelyEncrypt

fun vigenereSecurelyEncrypt(text: String, keyLength: Int = 2): Pair<String, String>

Encrypts using randomly generated keys for every N characters of the input string. Outputs a pair where the first element is the encrypted output and the second element is the random key.

This imitates the so-called One Time Pad, which was proven to be cryptographically unbreakable given its proper usage.