Skip to main content

Simple encryption

Project description

Milkycow

MILKY COW SIMPLE ENCRYPTION

INSTALATION:

$ python3 -m pip install milkycow

ENCRYPT:

>>> import milkycow as mc
>>> enc1 = mc.encrypt("hello 1", "pass")
>>> enc2 = mc.encrypt("hello 2", "password", rotate=100, layer=1, 3)

DECRYPT:

>>> dec1 = mc.decrypt(enc1, "pass")
>>> print(dec1)
hello 1
>>> dec2 = mc.decrypt(enc2, "password", 100, 1, 3)
>>> print(dec1)
hello 2

FILE ENCRYPTION:

>>> f =  mc.encrypt(open("file.txt", "r").read(), "p@55w0rd")
>>> open("file.enc", "w").write(f)

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

milkycow-0.0.5.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

milkycow-0.0.5-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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