Securely encode and decode hexadecimal with geometric figure.
Project description
Installation
To install, use:
pip install geocrypt
Geocrypt requires sympy.
Use
Geocrypt can only encode hexadecimal (with capital letters). To generate a key, use:
k = geocrypt.Key() k.generate()
To encode a string:
text = "Hello world!" ctext = geocrypt.encode(text, k)
To decode a string:
dtext = geocrypt.decode(ctext, k)
Complete example:
import geocrypt k = geocrypt.Key() k.generate() text = "Hello world!" ctext = geocrypt.encode(text, k) dtext = geocrypt.decode(ctext, k)
Source
Geocrypt’s code is available here.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file geocrypt-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: geocrypt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fa0655a73334707f8ab665cf515377c7c8b2d1d2a7d6815fb4f788c9dd04b2 |
|
MD5 | 9f60d3c5083f9e2bd8a04322e25e1274 |
|
BLAKE2b-256 | 7a37983d0f20a990b94826d8dd434ed3f772911f47ca412f5df29cf2044d30ae |