Skip to main content

A simple way to encode plain text, keeps the result sortable and partly searchable.

Project description

srndcipher

A simple way to encode plain text, keeps the result sortable and partly searchable.

Install

pip install srndcipher

Usage

import os
import srndcipher

cipher1 = srndcipher.SrndCipher(password="Your password")
data1 = os.urandom(1024)
data2 = cipher1.encrypt(data1)
data3 = cipher1.decrypt(data2)
assert data1 == data3

cipher2 = srndcipher.SrndCipher(password="Your password", force_text=True)
data1 = "your plain message"
data2 = cipher2.encrypt(data1)
data3 = cipher2.decrypt(data2)
assert data1 == data3

Notice

  • SrndCipher instance init takes about 0.6 second time, so try to keep the instance reusable.

Releases

v0.5.0

  • First relase.

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

srndcipher-0.5.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

srndcipher-0.5.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file srndcipher-0.5.0.tar.gz.

File metadata

  • Download URL: srndcipher-0.5.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for srndcipher-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7d544712a6e9434c01c598509b6aba612ac889acbee05641e7043c7f165db92c
MD5 e19fd167c9f36aecdccc9c268512a90f
BLAKE2b-256 0308b2e1d0aa33505b082e034d0e8f51ad6925a7fe6e5e5ddb82de3495091d48

See more details on using hashes here.

File details

Details for the file srndcipher-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: srndcipher-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for srndcipher-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9072104ab2f89ad07f411eada39b856d659be298312ebd33498acc3e156a5cc9
MD5 73d3b12a439d4902801505524c996446
BLAKE2b-256 8154badc227c1d3d7145fe8e539aea334afddfc6908f7ae4261c5fac0a3b111a

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