encryption module
Project description
Useful modules for encryption and file encryption and decryption (currently only string decryption)
test
making key code :
print(destr.make_key('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'))
# result : [97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97,
# 97, 97, 97, 97]
encrypting code
print(destr.ens('this is test str.', destr.key))
# result : b'89k2hfSgnomKayxjTYPH4rxGGMSZORJJueh8x53OCaXq4+UFzTWeU2qjQQcqmtMV'
print(destr.ens('this is test str.', destr.key))
# result : b'qfEw+NuqhmIsq1DbXZh6glNEQSW3EUkZWxFEOdQwdSudTGWszjA17BNF27hSgBgs'
print(destr.ens('this is test str.', destr.key))
# result : b'xxMjhD7BbBTNKYDWM9W9F51n13VgxGtUqYbVGx5ErBvcWBVHG4umnaHPPsoobcj2'
print(destr.ens('this is test str.', destr.key))
# result : b'JdheT2cei4KTYHY3I8aMMi+9xYX#+ugySPBGLAuUpZE6VlSNWKmguyifgI5yxh8YG'
decrypting code
print(destr.des(b'89k2hfSgnomKayxjTYPH4rxGGMSZORJJueh8x53OCaXq4+UFzTWeU2qjQQcqmtMV', destr.key))
# result : 'this is test str.'
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
ensdat-0.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
ensdat-0.0.2-py3-none-any.whl
(4.7 kB
view hashes)