Skip to main content

Simple Crypting library for python

Project description

Secrypt

Simple Crypting library for python

Usage:

import secrypt

# create a crypt object
c = secrypt.Crypt(key=0.0)	# key : 0.0 is the default

# encrypt string
data = "hello world!"
en = c.encrypt(data)	# returns encrypted data

# decrypt string
de = c.decrypt(en)		# returns original data

# write encrypted file
content = """Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum."""

c.write("test.txt", content)	# returns size of encrypted file

# read encrypted file
retrieved = c.read("test.txt")	# return original file data

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

secrypt-2.0.1.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

secrypt-2.0.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page