Coder Social home page Coder Social logo

cipher-py's Introduction

Disclaimer: This is not the most secure tool on the planet, it's simply a personal project for passing time and probably won't work against an actual attacker with bad intentions.

Cipher

Encrypts and Decrypts any .txt file in the current directory when a password is provided (unless the names of the files are specified in the EXCEPTIONS array). Useful to hide text from people with either physical or remote access to your machine (as long as they're not actual attackers), you can use for diaries (just an example).

How to use

  1. Download cipher.py to your machine.
  2. Open a command prompt on the directory where cipher.py is:
  3. Type python , press Enter, type import os; os.urandom(16) , press Enter and copy the line that shows up (it looks like b'xxxxxxxxxxxxxxxxxxx' )
  4. Open cipher.py and look for line 8 where it says SALT = b'xxxxxxxxxxxxxxx' , then just paste that line you copied after the = .
  5. Save it and run it to encrypt the .txt files that are in the same directory.

Notes

  • You can use any password on encryption but if you try to decrypt with a different password than you used it's gonna give an error.
  • I recommend use of auto-py-to-exe to compile .py in .exe which makes it harder for someone to see the code.

Download

If you don't care about the security of generating your own salt then you can download a version that comes with a pre-generated salt, links are on the Releases tab.

This script is meant for less tech-savvy people as it's not highly advanced but can be modified to whatever you need

cipher-py's People

Contributors

darkceptor44 avatar

Watchers

 avatar

Forkers

neesh7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.