Rail Fence Cipher Encoder

Encodes Strings using the Rail fence Cipher provided a key and an offset

Input: TextResult: Text

Text input

Run to see the result

Examples

Example keys and passwords are public test material.

key has to be bigger than 2

Input

Cryptography is THE Art of Writing or solving codes

Expected rejection

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

Input

shortinput

Expected rejection

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

Input

Cryptography is THE Art of Writing or solving codes

Expected answer

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

Input

12345678901234567890

Expected answer

51746026813793592840
Key
4
Offset
2
Normal with Offset with Spaces

Input

No one expects the spanish Inquisition.

Expected answer

  e  n ut.ooeepcstesaihIqiiinNnxthpsnso
Key
3
Offset
2
offset should be positive

Input

shortinput

Expected rejection

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

Format reference: Rail Fence Cipher Encode background and specification

Related tools

Browse encryption / encoding tools