A minimalistic, simple AES encryption library written in python3.
Project description
![](https://pypi-camo.freetls.fastly.net/9c42456d74ebe8d741436fb22826934531aa7f50/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3934363739373930373834363235383739392f3934363739383535363632393538353935302f756e6b6e6f776e2e706e67)
oCrypt0r - A minimalistic, simple AES encryption library written in python3.
oCrypt0r allows you to encrypt and decrypt strings of text via AES. Your encrypted data/strings can only be decrypted using your own custom key and salt you set before encrypting said data. You can use this for a variety of things from creating passwords, to encrypting HWIDs and much more!. Making AES encryption a little bit easier!
Updates
What has been updated as of | 2/27/22:
- Added File encryption & Decryption!
- Fixed some typos in the readmes's code examples.
- Removed loading spinner animation when encrypting. (To make it faster and more practical in an automation sense.)
- Updated my example code all the way at the bottom of this readme.
Installation
[Directly from here/this repo.]
- pip install git+https://github.com/therealOri/oCrypt0r
or
[From Pypi.]
- pip install oCrypt0r
Code Examples
Strings/Messages.
from oCrypt0r import oCrypt
#Encrypting Strings
string = input("Enter string: ")
salt = input("Enter salt: ")
encr = oCrypt().string_encrypt(string, salt)
print(encr)
#Decrypting Strings
string2 = input("Enter string: ")
salt2 = input("Enter salt: ")
ecr = oCrypt().string_decrypt(string2, salt2) #Will return "None" if any errors happen.
print(decr)
Files
from oCrypt0r import oCrypt
#Encrypting Files
file_path = '/home/ori/Desktop/uwu.txt' #Must be a path to a file you want to encrypt.
salt = input("Enter salt: ")
oCrypt().file_encrypt(file_path, salt)
#Decrypting Files
file_path2 = '/home/ori/Desktop/uwu.txt.oCrypted' # .oCrypted is what is used to let you know that the file is encrypted.
salt2 = input("Enter salt: ")
decr = oCrypt().file_decrypt(file_path2, salt2) #Will return "False" if any errors happen.
My own sample file for this project: crypt_sample.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oCrypt0r-1.0.2.tar.gz
(15.4 kB
view hashes)
Built Distribution
oCrypt0r-1.0.2-py3-none-any.whl
(15.7 kB
view hashes)