kellanb-cryptography 1.2.3

Creator: bigcodingguy24

Last updated:

Add to Cart

Description:

kellanbcryptography 1.2.3

kellanb-cryptography
an easy-to-use wrapper ontop of pycryptodome
installation
pip install kellanb-cryptography
use
kellanb-cryptography easy
a tool for quick and simple encryption
from kellanb-cryptography import easy
encrypted = easy.encrypt(data,key)
data: string
key: string
decrypted = easy.decrypt(encrypted,key)
encrypted: string
key: string
kellanb-cryptography key
generate a key from password
from kellanb_cryptography import key
key = key.gen_key_from_password(password, length=256)
password: string
length in bits: int
kellanb-cryptography aes
encrypt in aes
from kellanb_cryptography import aes
encrypted = aes.encrypt_aes(data, key,mode='GCM')
data: string
key: string, length 16,24,or 32
mode: 'GCM','EAX',or 'CCM', shows mode of operation
decrypted = aes.decrypt_aes(encrypted, key)
encrypted: string
key: string, length 16,24,or 32
kellanb-cryptography chacha20
encrypt in chacha20
from kellanb_cryptography import chacha20
encrypted = chacha20.encrypt_chacha_20(data, key)
data: string
key: string, 32
decrypted = aes.decrypt_chacha20(encrypted, key)
encrypted: string
key: string, length 32
kellanb-cryptography hash
generate a key from password
from kellanb_cryptography import hash
hash.sha256(data)
data: string, data to be hashed
hash.sha256(data)
data: string, data to be hashed
hash.512(data)
data: string, data to be hashed
hash.sha3_256(data)
data: string, data to be hashed
hash.sha3_512(data)
data: string, data to be hashed
kellanb-cryptography hmac
tamper-proof your messages
from kellanb_cryptography import hmac
mac = hmac.create_hmac(data,password)
data: string,
password: password to verify with
NOTE: THIS WILL NOT ENCRYPT YOUR DATA
hmac.verify_hmac(data,mac,password)
returns 1 for not tampered, a zero for check fail (data tampered)
data: data to verify
mac: HMAC code
password: password to verify with

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.