ENCRYPT DECRYPT AES 256bit
Install to your environment : > pip install python-aes256
How to use :
Test using python shell :
> python manage.py shell
> from pyaes256 import PyAES256
> a = PyAES256()
> password = 'g_7me8rl2m#a_h2oresgt2#ni=3_4*!ai*=rtsq)yi!g7_5-51'
Encryption Process :
> enc = a.encrypt('Secret Text',password)
> print('Encrypt: ', enc)
Encrypt: {'url': 'REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', 'salt': b'k4/Ai7zJKUssvup2c+2+3w==', 'iv': b'34YtC6XqlQjo8UfWc4yNcA=='}
Decryption Process :
> dec = a.decrypt(url='REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', salt=b'k4/Ai7zJKUssvup2c+2+3w==', iv=b'34YtC6XqlQjo8UfWc4yNcA==', password=password)
> print('Decrypt: ', dec)
Decrypt: b'Secret Text'
> origin = bytes.decode(dec)
> print('Origin: ', origin)
Origin: 'Secret Text'
Avalanche Effect :
How to use :
Test using python shell :
> python manage.py shell
> from pyavalanche import PyAvalanche
> chipper1 = 'Nk9iL05BQmM5bnRES3drVGc0NHZRdz09'
> chipper2 = 'Z3VFbi9lWDJtS1B5UzE4TGVsMzRHQT09'
> print('Chipper 1 = ', chipper1)
> print('Chipper 2 = ', chipper2)
> ava = PyAvalanche()
> result = ava.avalanche_effect(chipper1, chipper2)
Print result :
> print(result,'%')
50.0 %
> print("If more than 50% output bits have changed then the algo have good avalanche effect.")
Metadata
Release files for python-aes256 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-aes256-1.0.5.tar.gz | 5.9 kB | Without provenance | Details for python-aes256-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_aes256-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for python_aes256-1.0.5-py3-none-any.whl |
Total release size: 11.4 kB
Release files / python-aes256-1.0.5.tar.gz
| Download URL | python-aes256-1.0.5.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3fd0147dc28c4a8a30ca532a497bcd18e89f5dc5552a82132f53e03138ccbda
|
|
BLAKE2b-256 checksum How to use checksums |
d1a957514c555c0cff7f75eb5e4bed07be415b40fe07cdd8a5f78b1e73445286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Release files / python_aes256-1.0.5-py3-none-any.whl
| Download URL | python_aes256-1.0.5-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a2002ef89203c5987c3e4f2ef44ee7b7db698e5fbe2cbe062cde83f653a31ea
|
|
BLAKE2b-256 checksum How to use checksums |
ecdcdf6324d61c9e8c2e7a04aa8123c714e2c202c9e30de087b12fcf560f19a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Security for python-aes256 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.