Skip to content

A little python script that encodes and decodes a text by replacing spaces with random numbers and applies rot13 to the letters. πŸ“œ

License

Notifications You must be signed in to change notification settings

VonKavalier/sepyrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

sepyrot

A little python script that encodes and decodes a text by replacing spaces with random numbers, applies rot13 to the letters and replace the second of doubled letters with a "+".

Requirements

Python β‰₯ 3.0

Usages :

Works with simple text...

# Encode a short message
$ ./sepyrot.py --encode "Hello I am a message"
Ury+b2V4nz8n9zrf+ntr

# Decode a short message
$ ./sepyrot.py --decode "Ury+b2V4nz8n9zrf+ntr"
Hello I am a message

...And with files as well

# Encode a text file (which works with multiple lines indeed)
$ ./sepyrot.py --encode "$(cat textfile.txt)" > encoded_textfile.txt

# Decode an encoded text file
$ ./sepyrot.py --decode "$(cat encoded_textfile.txt)" > decoded_textfile.txt

Tips

  • You can also use -e and -d instead of --encode and --decode

Issues :

  • Special characters make the script crash with Python < 3. With Python 3 they are just not rot13 encoded and stay clear in the encoded message
  • Cannot encode/decode messages that include numbers, it'll replace them with spaces in decoded message

About

A little python script that encodes and decodes a text by replacing spaces with random numbers and applies rot13 to the letters. πŸ“œ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages