Skip to main content

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


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

geocrypt-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for geocrypt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62fa0655a73334707f8ab665cf515377c7c8b2d1d2a7d6815fb4f788c9dd04b2
MD5 9f60d3c5083f9e2bd8a04322e25e1274
BLAKE2b-256 7a37983d0f20a990b94826d8dd434ed3f772911f47ca412f5df29cf2044d30ae

See more details on using hashes here.

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