Codificar com Cifra Rail Fence

Codifica a entrada com “Rail Fence Cipher” de acordo com o padrão correspondente.

Entrada: TextoResultado: Texto

Entrada de texto

Execute para ver o resultado

Exemplos

Example keys and passwords are public test material.

key has to be bigger than 2

Entrada

Cryptography is THE Art of Writing or solving codes

Expected rejection

Message contains
Key has to be bigger than 2
Chave
1
Deslocamento
0
key has to be smaller than input's length

Entrada

shortinput

Expected rejection

Message contains
Key should be smaller than the plain text's length
Chave
22
Deslocamento
0
normal

Entrada

Cryptography is THE Art of Writing or solving codes

Expected answer

Cytgah sTEAto rtn rsligcdsrporpyi H r fWiigo ovn oe
Chave
2
Deslocamento
0
Normal with Offset non-null

Entrada

12345678901234567890

Expected answer

51746026813793592840
Chave
4
Deslocamento
2
Normal with Offset with Spaces

Entrada

No one expects the spanish Inquisition.

Expected answer

  e  n ut.ooeepcstesaihIqiiinNnxthpsnso
Chave
3
Deslocamento
2
offset should be positive

Entrada

shortinput

Expected rejection

Message contains
Offset has to be a positive integer
Chave
2
Deslocamento
-1

Ferramentas relacionadas

Criptografia / Codificação

Referência da operação

Ver a documentação técnica original (English)