You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
RailFence decryption is incorrectly adding some trailing spaces (padding?) before decryption which is resulting in incorrect plaintext.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
Go to cyberchef
Input cipher text : /1E11v1 ee1smr1hoyaosF2u r/lpisdled enh
Select RailFence cipher with key: 11 and
Observe plain text: /1era2/sdh dluo1e11v1hs ple neirFos1E my
Expected behaviour
Plaintext should be: /EveryFriends/2a111111 should help some
It can be verified on this site.
Additional context
It can be observed on the same site that railfence of
ciphertext: /1E11v1 ee1smr1hoyaosF2u r/lpisdled enh (with 5 trailing spaces)
results in plaintext: /1era2/sdh dluo1e11v1hs ple neirFos1E my
which matches the cyberchef response.
It appears as if CyberChef is padding the input ciphertext with key - len%key i.e. 11 - 39%11 = 5 spaces characters to meet the nearest block size of 11.
The text was updated successfully, but these errors were encountered:
Describe the bug
RailFence decryption is incorrectly adding some trailing spaces (padding?) before decryption which is resulting in incorrect plaintext.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
/1E11v1 ee1smr1hoyaosF2u r/lpisdled enh
RailFence
cipher with key:11
and/1era2/sdh dluo1e11v1hs ple neirFos1E my
Expected behaviour
Plaintext should be:
/EveryFriends/2a111111 should help some
It can be verified on this site.
Additional context
It can be observed on the same site that railfence of
ciphertext:
/1E11v1 ee1smr1hoyaosF2u r/lpisdled enh
(with 5 trailing spaces)results in plaintext:
/1era2/sdh dluo1e11v1hs ple neirFos1E my
which matches the cyberchef response.
It appears as if CyberChef is padding the input ciphertext with
key - len%key
i.e.11 - 39%11 = 5
spaces characters to meet the nearest block size of 11.The text was updated successfully, but these errors were encountered: