Skip to content

Kamasutra Cipher

Enter text to either Encrypt or Decrypt using the English alphabet. Press the Randomize button to update the Secret Key Pairs with new random values. Press the Clean Text button to remove any non-letter characters. Press the Example button to show the encryption of a random word or phrase. Press the No Spaces button to remove any whitespaces. Press the Clear button to remove the input and output text. Any special characters that are not letters are left as is.

   



Randomized Key Pairs:

A:BC:DE:FG:HI:JK:LM:N

O:PQ:RS:TU:VW:XY:Z

Input Text:

  

Background

The Kamasutra Cipher (Mlecchita Vikalpa) dates back to the 4th century CE. Written by Indian philosopher Vātsyāyana, it's one of the 64 arts in the Kamasutra, focusing on simple substitution encryption and decryption. He called it the art of secret writing. Randomize the letters in the alphabet, then pair them. Iterate through each letter of the plaintext, find the match, and then replace it with the corresponding letter in the pair. My implementation uses the same function for encryption and decryption without any modifications.

‌* Wikipedia Contributors. (2022, December 28). Mlecchita vikalpa. Wikipedia; Wikimedia Foundation. https://en.wikipedia.org/wiki/Mlecchita_vikalpa