Twin-Hex Cypher Encoder/Decoder


Twin-Hex encoding is much harder to crack than most simple cyphers, as it operates on letter pairs, rather than individual characters - hence the 'twin' part of the name. For a simple substitution cypher, any letter will always be represented as the same symbol in the output. This means that if the original text contains a double letter, such as 'ee' then the output will also contain a double symbol. However English has very few such double letters, so if the output contains such a pair, the codebreaker immediately knows that it is likely to represent 'ee', 'oo', etc.
so, in this cypher, the original text gets converted two characters at a time, meaning that the output for 'AB' is quite different to the output for 'BA', and the second time that 'AB' appears in the original text, there is a fifty-fifty chance that the A will be part of the previous pair, rather than be paired with the B again.
As a result, while most cyphers have only 26 combinations to work out, this one has literally thousands, making it very much harder to apply "frequency analysis", and effectively impossible for short texts. Because there are so many combinations, rather than using decimal numbers as output, this encryption algorithm uses Base36, which is like Hexadecimal, but uses all 26 letters of the alphabet in addition to the digits 0 to 9
This process has similarities to the cryptographic process known as "fractionation", but arguably works in the opposite manner.


  1. Type, or Copy-and-Paste the text to be encrypted / decrypted into the text box below.
  2. Click the 'Encrypt/Decrypt' button below the input fields.
  3. The converted text will be displayed below.
  4. To do further encryptions / decryptions simply change the text in the input field, and then click the 'Encrypt' or 'Decrypt' button again.
Enter text to be encrypted / decrypted here:
Output Area:

© Copyright Mike Brockington 2004 - 2021   All Rights Reserved