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.

Source Distribution

fileCrypto-4.0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

fileCrypto-4.0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file fileCrypto-4.0.1.tar.gz.

File metadata

  • Download URL: fileCrypto-4.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for fileCrypto-4.0.1.tar.gz
Algorithm Hash digest
SHA256 ca55d072452bc7165099bb93313d0bebc16284430127293069f128533e0c9e74
MD5 731d3bcfcd54ab7c03fe054c384706ff
BLAKE2b-256 bc50c6c3b4c7865381ec2e5a463da8250298708eaa56bb3ef6ea571f4978c278

See more details on using hashes here.

File details

Details for the file fileCrypto-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: fileCrypto-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for fileCrypto-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2079e23cb517272fbaa7b2a87b6a6782ec46aea97ca1a29daf45dec47640feba
MD5 01454dd1ea5fd39210c0aa79dc7359ea
BLAKE2b-256 5a65abc4a90540af18e675f5a0585cb48d291ff58b4e678b3a3ddc828b77fcac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page