Tool to decrypt/encrypt using prime numbers. The Prime Numbers cipher consists in associating each character a prime number.

Prime Numbers Cipher - dCode

Tag(s) : Cryptography, Substitution Cipher

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!

You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? *Contact-me*!

Sponsored ads

Tool to decrypt/encrypt using prime numbers. The Prime Numbers cipher consists in associating each character a prime number.

The encryption uses a correspondence between prime numbers and letters. By default, replace the 26 letters of the alphabet with the 26 first prime numbers (A=2, B=3, C=5, D=7, ..., Z=101).

Example: DCODE is crypted 7,5,47,7,11

Decryption requires knowing the correspondence used between prime numbers and letters. By default, A = 2, B = 3, C = 5, ...

Example: The cipher message is 7,5,47,7,11 then it will be decrypted into DCODE.

The message is only made of prime numbers. The first 26 prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 and 101.

It is possible to define an alternative correspondence (or random) between prime numbers and letters.

Example: Random substitution: A=17, B=43, C=101, D=3, etc.

To decode this alternative, convert the numbers into letters using the decryption form and then perform a monoalphabetical substitution.

The South African Scouts Cipher uses prime numbers that are multiplied together. It is then necessary to use a prime decomposition.

Example: 110 = 2*5*11 = A,C,E.

In this case, the order of letters is not necessarily preserved (ACE = 2*5*11 = 110 and ECA = 11*5*2 = 110 too), it is then necessary to use an anagram generator or a permutations generator to find the right permutation of letters.

dCode retains ownership of the source code of the script Prime Numbers Cipher online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the online Prime Numbers Cipher script for offline use, for you, your company or association, see you on contact page !

prime,number,substitution,scout,south,african,africa

Source : https://www.dcode.fr/prime-numbers-cipher

© 2018 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode