Simple AES
Very simple encryption helper for pycripto
Installation
pip install simple-aes
Using
>>> from simple_aes import SimpleAES
>>> enc = SimpleAES('test', use_salt=True)
>>> encrypted = enc.encrypt('test')
>>> enc.decrypt(encrypted)
'test'
Parameter “use salt” use salted algorithm. You get different encrypted values each times. But you must be careful. Sometimes this may make encryption of weaker. I will try to explain it. If you try to encrypt identical phrase more times with salt in theory your encryption key may be opened via differential analysis. But when you sure what you not doing it, it’s makes encryption stronger.
Encrypting big files
For encrypting big files you may using EncryptIO like this:
>>> print "Encrypting..."
>>> f = EncryptIO('secret', open('test', 'wb+'))
>>> f.write('Hello world 1024 times. ' * 1024)
>>> f.close()
>>> d = EncryptIO('secret', open('test', 'rb'))
>>> print "Decrypting..."
>>> data = ''
>>> for i in d.decrypt():
... data += i
>>> print data
This write data to file with encrypting and ZLIB compression. You may change compressor via changing class-property COMPRESSOR.
Metadata
Release files for simple_aes 0.4.7
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 |
|---|---|---|---|---|
| simple_aes-0.4.7.tar.gz | 3.4 kB | Without provenance | Details for simple_aes-0.4.7.tar.gz |
Release files / simple_aes-0.4.7.tar.gz
| Download URL | simple_aes-0.4.7.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4198523f3f41aa2ecd7552be641a0eecac2a1654ff6c4b41f42859b0c67bd9f8
|
|
BLAKE2b-256 checksum How to use checksums |
dc655526c08b69dc561383a509cd3d2e2f040486dfca0049e7d9ec4932c8ff50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for simple_aes 0.4.7
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.