Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ensdat-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file ensdat-0.0.2.tar.gz.

File metadata

  • Download URL: ensdat-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for ensdat-0.0.2.tar.gz
Algorithm Hash digest
SHA256 27a096ed4079555de1f7d2eced13fabeaa01cf1fd59063805cd2b1fe5e97c216
MD5 b6364142aa84cad46dd4effffdcfc15c
BLAKE2b-256 504edfa9e1109537d66379d7121a50aa194facdc39fd644f9418b4e207f4df4a

See more details on using hashes here.

File details

Details for the file ensdat-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ensdat-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for ensdat-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 893f9beee3730b4bb8109139df8a520693fad4edf7f7d95ccc72794b941a649e
MD5 04c7d60e9ca831699e3c98343307060a
BLAKE2b-256 3de48a67414206f44ad19e7d89cee59c2eddac3ff2bdef899647514b3126fcb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page