[ Log On ]
  • Home
  • Tst
  • Cha
  • Enc
  • Code
  • IP
  • Fun
  • Sub
  • DigF
  • Cis
  • Com
  • Db
  • About
  • Netsim

Rail Code

[Back][Reverse Rail] A rail code uses a number of rails to write the code across:

[Reverse Rail]

Parameters

Message:
Number of rails:

Try an example

  • "WE ARE DISCOVERED. FLEE AT ONCE" with three rails should give WECRL TEERD SOEEF EAOCA IVDEN". Try!
  • "defend the east wall of the castle" with three rails should give dnetlhseedheswloteateftaafcl". Try!
  • "defend the east wall of the castle" with four rails should give dttfsedhswotatfneaalhcleelee". Try!

Method

For this we add a number of "rails", and add the characters in sequence, such as for three rails (taken from Wikipedia):

'WE ARE DISCOVERED. FLEE AT ONCE', gives:

W . . . E . . . C . . . R . . . L . . . T . . . E
. E . R . D . S . O . E . E . F . E . A . O . C .
. . A . . . I . . . V . . . D . . . E . . . N . .

to give:

WECRL TEERD SOEEF EAOCA IVDEN

"WE ARE DISCOVERED. FLEE AT ONCE" with three rails should give WECRL TEERD SOEEF EAOCA IVDEN". Try!