Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rail Fence Cipher with both encoding and decoding #948

Merged
merged 2 commits into from
Feb 13, 2020

Conversation

Flavsditz
Copy link
Contributor

Recently while taking part in a CTF I had to use the Rail Fence Cipher. I've realized my favourite tool (yes it is CyberChef) didn't have it so I decided to contribute it.

The cipher itself is quite simple. For more infos https://en.wikipedia.org/wiki/Rail_fence_cipher or check this site where you can visualize the cipher in action http://rumkin.com/tools/cipher/railfence.php

@n1474335 n1474335 merged commit 0ab96dd into gchq:master Feb 13, 2020
@kengraf
Copy link

kengraf commented Mar 24, 2020

Padding during decoding operation should be dropped.
With key = 7, offset = 0
"WBDA RN FREALFOA ULFKTNE FSCSAH" should return "WAFFLES FOR BREAKFAST AND LUNCH" not "WAFOKS CTAR BRE NS AEUAND LL H FFF"

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants