Skip to content

SamR5/PyCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCrypt

An program to encrypt / decrypt files and directories

How it works

File encryption

Read a file as binary, encrypt it with a key (the password entered) and then write a file with the encrypted file and the key.

Folder encryption

Build an index with every files of the folder crypted and the empty directories. Put them with the key in a file.
For decryption, the folder will be rebuilt according to the index by decrypting each enrty.

Is it secure ?

No. The key (password) is hashed with SHA256 so it can take some time to find if it is long and complex.

External C++ library

The ccryptlib.cpp file contains the functions to encrypt and decrypt an array of bytes.
It can be compiled with: g++ -c -fPIC ccryptlib.cpp -o ccryptlib.o -O3
and then: g++ -shared -Wl,-soname,library.so -o ccryptlib.so ccryptlib.o -O3
If the ccryptlib.so library is not found, the encryption will be done by the python version
The ccryptlib.so in the repository is compiled with g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.

Updates

19/04/2020

  • Use external C++ library to speed up encryption.
  • Press 'Enter' to show the key for 500ms.

18/04/2020

  • Disable radiobutton and the pw entry
  • Replace password by stars and show only the letter on the left of the cursor

About

An encrypter for files and folders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors