← Rail Fence guide

Rail Fence Cipher Examples

Copy these rail fence examples into Cipher Portal or compare with /examples.html.

Example: HELLOWORLD with 3 rails

Zigzag HELLOWORLD across three rails, read rows → HOLELWRDLO. Decrypt with rails=3 to recover HELLOWORLD.

Example: two rails

Two-rail fence is the simplest puzzle form: up-down bounce between top and bottom rows. Try a short phrase on the tool with rails=2 to see the pattern.

Example: portal demo message

Cipher Portal’s Rail Fence example uses “WE ARE DISCOVERED FLEE AT ONCE” with rails 3—load it via the Example button after selecting Rail Fence.

Verify in Cipher Portal

After encrypting HELLOWORLD with rails set to 3, copy the ciphertext output and decrypt with the same rail count to confirm the greeting returns. For the longer demo sentence, use the Example button to preload plaintext and rails, then rerun encrypt to show how punctuation and spaces follow portal normalization rules.

If a scout puzzle gives only ciphertext, trial rails manually on paper first, then use portal key recovery on decrypt to compare ranked candidates against your worksheet.

Plaintext
HELLOWORLD
Rails
3
Ciphertext
HOLELWRDLO

Frequently asked questions

What is the classic rail fence example?

HELLOWORLD on 3 rails → HOLELWRDLO matches Cipher Portal.

Do rails include spaces?

Portal examples often omit spaces; follow puzzle rules.

Where is the decoder guide?

/rail-fence-decoder.html explains unscrambling.

Can I auto-find rails?

Try key recovery on decrypt or manual scoring of rail counts.

Verify rail fence examples live.