run openssl via python
Project description
openssltool
run openssl via python
installation:
$ python3 -m pip install opensslpy
examples:
>>> from opensslpy import sym
>>> # encryption
>>> sym.encrypt("test.txt", out_file="file1.enc", iter=34, passwd="secret", cipher="bf")
>>> # decryption
>>> sym.decrypt("file1.enc", out_file="file1.txt", iter=34, passwd="secret", cipher="bf")
>>> # list all cipher
>>> sym.CIPHERS
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
opensslpy-0.0.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for opensslpy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f3bb519cbd2824e911c25425c3a3f4f2fcc352d48b86d98ff6f50c7bc35b39 |
|
MD5 | 23dd6ff3248545ac51758b43de3a6652 |
|
BLAKE2b-256 | b5cefa226ad62d4e3fb3d1aac8a8abd06c76933615b4b6e99851875ef8923bab |