Skip to content

Encrypts text files using a password, and the same password is needed to then decrypt the text.

Notifications You must be signed in to change notification settings

bobGSmith/CypherTxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CYPHER TXT

Table of Contents

  1. About
  2. Disclaimer
  3. IoC
  4. Quickstart

About

It's a variant on a Caesar cipher that uses a differnt shift size for each letter substitution, and the sequence of shift sizes used can only be determined if you have the password that was used to create them in the first place.

So, it uses a password to create seed for a pseudo-random number generator which it then uses to generate a list of numbers. It then does letter substitutions on the text and uses the random numbers to pick the shift size for the substitution (so a different shift is used for each letter). The same password must then be used to decrypt the text.

Disclaimer

I have no idea how secure this encryption method is as I made it up, so probably not very.. Having said that, I tried a few automatic cipher solvers and they havent had any luck with it. Not sure if there's an offical way to test thest things?

If I had to guess, I think its a few security noteches above rot13 or Caesar cipher

IoC

The encrypted text output seems to have a index of coincidence of around 0.8 which is close to what is seen in random text (english is about 1.7).

Quickstart

in terminal:

python cypher.py "filepath/yourtextfile"

it will then prompt you for a password and ask you if you are encrypting or decrypting.

It will then output a file in the same directory as the original file with "_encrypted" or "_decrypted" added on to the filename.

About

Encrypts text files using a password, and the same password is needed to then decrypt the text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages