One-time pad encoder/decoder and key generator |
||
The one-time pad (OTP) encryption technique is the only proven unbreakable encryption system. Even infinite computational power and time cannot break this system. Implementation of the one-time pad system This tool allows you to enter a message in any language, e.g.: English, Chinese, Russian etc. All texts are considered UTF-8 encoded. UTF-8 is a multibyte encoding that can represent any Unicode character in 1 to 4 bytes.
Each character in the message will be converted into a hexadecimal value, for example: 4f7065726174696f6e2073746172742061742031303a3030 To encrypt the message you need a randomly generated number called a one-time pad, for example: a33a986b3f8b111dfbfb1d2e6f0934748fba6efc07a9fab9 XOR the message and one-time pad to create the cipher : message: 4f7065726174696f6e2073746172742061742031303a3030 one-time pad: a33a986b3f8b111dfbfb1d2e6f0934748fba6efc07a9fab9 ------------------------------------------------ xor cipher: ec4afd195eff787295db6e5a0e7b4054eece4ecd3793ca89To decrypt the cipher, XOR the cipher and the same one-time pad: cipher: ec4afd195eff787295db6e5a0e7b4054eece4ecd3793ca89 one-time pad: a33a986b3f8b111dfbfb1d2e6f0934748fba6efc07a9fab9 ------------------------------------------------ xor message: 4f7065726174696f6e2073746172742061742031303a3030Convert the message hexadecimal value to UTF-8 and you get: Operation start at 10:00 How to use the one-time pad system
This tool also allows you to generate multiple pseudorandom one-time pads. It is called pseudorandom because the generated numbers are not true random numbers but are generated using a mathematical formula. This PRNG (PseudoRandom Number Generator) produces a sequence of bits that "appears" to be random, i.e., the output is statistically indistinguishable from random values. This tool uses two methods to generate cryptographic pseudorandom numbers depending if your browser supports it.
|