Skip to main content

Encrypt like a dragon: new method for securing data

Reason this release was yanked:

oopsie daisy

Project description

Dragon-E

What is it?

Dragon-E (or just Dragon) is a simple but powerful library to encode messages. It relies on the end-user having the decryption key.

What does it look like?

Encoded messages will look something like this: 154:221:169:238:253:184:108:204:179:230:206:254:185:220:241:251:179:135:226:169:116:183:139:180:240:245:178:192:254:170:236:195:237:189:148:168:241:166:218:242:86:200:197:139:189:250:243:106:188:232:168:238:189:236:174:150 In this case, the original message was Dragon Encryption is a lightweight, easy to use package. and was encoded using the passkey AV3ry57r0nGp4Ssw0Rd!?.

What makes it so amazing?

  1. Unlike some other encryption methods, the encoded message's length is not dependent on the passkey's length. This makes it more difficult to guess the passcode.
  2. Every part of the passkey is important, meaning that you can't solve it all at once.
  3. The longer the message and passkey, the more difficult it is to decode.
  4. As of its 2.0.0 update, Dragon offers Image Encryption! This essentially encrypts the message using stealthencrypt and then transfers it into an image.
    • The resulting image is of type PIL.Image and is always square.

How can I download it?

pip install dragon-e

EXAMPLE

Encrypting

import dragon_e as de

important_info = de.encrypt("Don't share this info with anybody!", "V3ry57r0ngS3cuR17yK3Y")
with open('secret_file.dragon', 'w') as f:
    f.write(important_info)
import dragon_e as de

important_info = de.stealthencrypt("Don't share this info with anybody!", "V3ry57r0ngS3cuR17yK3Y")
# Stealth Encryption just removes the delimiters and can be decoded the exact same way as with delimiters.
with open('secret_file.dragon', 'w') as f:
    f.write(important_info)
import dragon_e as de

im = de.imageencrypt("Don't share this info with anybody!", "V3ry57r0ngS3cuR17yK3Y")
im.show()

The above code would display this image: which could be decrypted with imagedecrypt.

Decrypting

import dragon_e as de
f = open('secret_file.dragon', 'r')
super_secret = f.read()
f.close()
decrypted = de.decrypt(super_secret, "V3ry57r0ngS3cuR17yK3Y")
print("Decoded information: "+decrypted)
import dragon_e as de
decrypted = de.imagedecrypt("path/to/image.png", "V3ry57r0ngS3cuR17yK3Y")
print("Decoded information: "+decrypted)

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

dragon_e-2.0.1.tar.gz (90.2 kB view details)

Uploaded Source

Built Distribution

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

dragon_e-2.0.1-py3-none-any.whl (89.7 kB view details)

Uploaded Python 3

File details

Details for the file dragon_e-2.0.1.tar.gz.

File metadata

  • Download URL: dragon_e-2.0.1.tar.gz
  • Upload date:
  • Size: 90.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for dragon_e-2.0.1.tar.gz
Algorithm Hash digest
SHA256 80796aa0ce3bec0e0695b6e69ddfcba3a8d81bcc829f51087a3b3894731d5672
MD5 03d5f2de96e26c35648e0c207e8e24ba
BLAKE2b-256 c605bbcddfd3015fa9a12c9e0bc2da2f4572c358fb1feb47b5ddb2d84f09a1e7

See more details on using hashes here.

File details

Details for the file dragon_e-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: dragon_e-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 89.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for dragon_e-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a585333ab5d96c94fca9eebe0528625d06dce1235d95e8ad4f866dd950e8a8
MD5 5f9b172be98b04a7f961c77d3f4a2dc0
BLAKE2b-256 cabe4957a129bea25a037266d0e3580a9c6230c4c07917539db0cf8bd4c74723

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