Skip to main content

Protecting File Was Never Easier Than Before

Project description

fileCrypto

Encryption and Decryption Files Was Never Easier Than Before and for EVERYONE !!!

Dependencies

  • pyaes
  • pycrypto

Features

  • Anyone Can Use It, Beginner or Profissional
  • No Hard Coding To Encrypt and Decrypt File Anymore
  • Work In Any Platform (Linux, Mac Os, Windows)

What's algorithm that is in fileCrypto ?

  • AES
  • XOR
  • Base64(Without Key)
  • Base32(Without Key)
  • Base16(Without Key)

Hmm What Is Key ?

This seems to be a point of confusion for many people new to using encryption. You can think of the key as the "password". However, these algorithms require the "password" to be a specific length.

But You can Use Any length You want No Problem, Wait What You Just Say Specific LENGTH

Yeah. I did But I Use MD5 Hash To Get The Specific length. However, The Input Was .

How Can I Install It

from pip using :

pip3 install fileCrypto

How I Can Use It ??

Like I Say In Description It's Almost Easy For Every One To Use It.

Let's Give Exemple For Each algorithm

AES

Encryption

import fileCrypto

#For fileOnAES is 3 parametre
#The First is The File Derection
#Seconde Is for The Key(password) 
#This Last is for extension and I Make The Defaut One is '.cry'
aes = fileCrypto.fileOnAES('exemple.jpg','123456789')

# encrypt() methode is to give the order to encrypt the file
# decrypt() methode is to give the order to decrypt the file

aes.encrypt()

#[Out]:exemple.jpg.cry

For The Extension you can use what ever u want Don't forget to Start The Extension with a dot '.'

Exemple : .enc .ree .yourName

Decryption

import fileCrypto

#For fileOnAES is 3 parametre
#The First is The Encrypt File Derection 
#Seconde Is for The Key(password) That U USe
#This Last is for extension and I Make The Defaut One is '.cry' 
#But Use WHat You Encrypt With

aes = fileCrypto.fileOnAES('exemple.jpg.cry','123456789')

# encrypt() methode is to give the order to encrypt the file
# decrypt() methode is to give the order to decrypt the file

aes.decrypt()

#[Out]:exemple.jpg

XOR

Encryption

import fileCrypto

#For fileOnXOR is 3 parametre
#The First is The File Derection
#Seconde Is for The Key(password) 
#This Last is for extension and I Make The Defaut One is '.cry'
xor = fileCrypto.fileOnXOR('exemple.jpg','123456789')

# encrypt() methode is to give the order to encrypt the file
# decrypt() methode is to give the order to decrypt the file

xor.encrypt()

#[Out]:exemple.jpg.cry

For The Extension you can use what ever u want Don't forget to Start The Extension with a dot '.'

Exemple : .enc .ree .yourName

Decryption

import fileCrypto

#For fileOnXOR is 3 parametre
#The First is The Encrypt File Derection 
#Seconde Is for The Key(password) That U USe
#This Last is for extension and I Make The Defaut One is '.cry' 
#But Use WHat You Encrypt With

xor = fileCrypto.fileOnXOR('exemple.jpg.cry','123456789')

# encrypt() methode is to give the order to encrypt the file
# decrypt() methode is to give the order to decrypt the file

xor.decrypt()

#[Out]:exemple.jpg

Base64, Base32, Base16(No Key For This 3 Algorithm)

Hir Is Different Then Other In Those Algorithm you will Use encode and decode methode because there are not for encryption but for coding data

Encode

import fileCrypto

#For fileOnBase64 is two parametre
#The First is The File Derection
#This Last is for extension and I Make The Defaut One is '.cry'
base64 = fileCrypto.fileOnBase64('exemple.jpg','123456789')

# encode() methode is to give the order to encrypt the file
# decode() methode is to give the order to decrypt the file

base64.encrypt()

#[Out]:exemple.jpg.cry

For The Extension you can use what ever u want Don't forget to Start The Extension with a dot '.'

Exemple : .enc .ree .yourName

Decode

import fileCrypto

#For fileOnBase64 is 2 parametre
#The First is The Encrypt File Derection 
#This Last is for extension and I Make The Defaut One is '.cry' 
#But Use WHat You Encrypt With

base64 = fileCrypto.fileOnBase64('exemple.jpg.cry','123456789')

# encode() methode is to give the order to encrypt the file
# decode() methode is to give the order to decrypt the file

base64.decrypt()

#[Out]:exemple.jpg

Just Change The fileOnBase64 to fileOnBase32 or fileOnBase16 If you want Use an diffirent algo for base

FAQ

What's New in fileCrypto 2.0

Adding:

  • DES
  • DES3
  • Blowfish

And Reduce Time complexity

What's New in fileCrypto 3.0

Adding :

  • ARC2
  • ARC4

What's New in fileCrypto 3.4

Fixing :

  • Bug in Base64, Base32 and Base16

Adding :

  • Time Printing

Wait what "Time Printing":

Yeah if you want to print the time complexity for the user or your Self

How use Time Printing:

You need just to make the timerPrinting argv True.

Like this:

import fileCrypto

cipher = fileCrypto.fileOnAES("exemple.jpg","123456789")
cipher.encrypt(timerPrinting=True)
cipher.decrypt(timerPrinting=True)

#[Out]: 
# Done In 0.142667865753174
# Done In 0,132926678657531
  • You can apply this for all the classes in the package

How do I get a question I have added?

E-mail me at zain.work02@gmail.com with any questions, suggestions and comments

Can I give you my money?

Umm... Ok? 😄

Bitcoin - 19MNfdTtGSxuBZpcKXJPVc3KbRnohxARMJ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fileCrypto-4.0.1-py3-none-any.whl (15.8 kB) Copy SHA256 hash SHA256 Wheel py3
fileCrypto-4.0.1.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page