Skip to main content

Sage common utilities library

Project description

sageutils

Common utility functions

https://github.com/ttong-ai/sageutils/blob/main/README.md

Supported Python version: 3.8.0+

Install dependencies:

Make sure you install to the correct Python environment. pip install -r requirements.txt or pip3 install -r requirements.txt

passutils.py

permutate and reverse_permutate use SHA256 to cryptographically add puseudorandom permutation to the mnemonic pass phrases commonly seen in the crypto world.

If the mnemonic pass phrase is one two three four five six seven eight nine ten, you can randomize it by adding an easy-to-remember personal key. In the following example, if the key is disney, the randomized pass phrase would be one four ten five eight three six seven two nine. You can store this permutated version of passphrase in your cloud-based password managers. Even if a bad actor somehow hacked your password manager and stole your randomized private key phrase due to security breach, it would be almost impossible for the bad actor to figure out the correct sequence to your private pass phrase. You will have precious time to move your funds to newly secured locations. (It is still important to keep best security practices for your password managers!)

When you need to use your private pass phrase, just use the reverse_permutate command with the same personal key. This can be generated only when you need to use the private pass phrase. But do not store it anywhere!!

You do need to always remember your personal key, this is your responsibility. Use a simple word that you and trusted ones would always remember. If you forget your personal key, the original sequence of the pass phrase may be permenantly lost.

Command line usage:

passutil permutate "one two three four five six seven eight nine ten" --key="disney"

Output with encrypted permutation:
eight seven four nine three five two ten one six
passutils reverse-permutate "eight seven four nine three five two ten one six" --key="disney"

Output of original sequence:
one two three four five six seven eight nine ten

Disclaimer

The password utiltiy functions are provided as is. We are not responsible for any losses due to misuses or forgotten personal key or any bugs. You will need to test it and feel comfortable with the process before using it.

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

sageutils-0.1.6.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

sageutils-0.1.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sageutils-0.1.6.tar.gz.

File metadata

  • Download URL: sageutils-0.1.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for sageutils-0.1.6.tar.gz
Algorithm Hash digest
SHA256 94945e651346a406c37fc34a897f5482b31db8a2215517fec4bfd5965f8058d2
MD5 409a8311f4051b29ac7674031325c827
BLAKE2b-256 df43c74a3e1e6b0cbddba0b7363d50969a6a4bc15586f3b017943fc5b9a137eb

See more details on using hashes here.

File details

Details for the file sageutils-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: sageutils-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for sageutils-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3a535a1bca1c717a6d0a9b983167941a14f9503d7209ca0f788db8feaa7e5868
MD5 422dc2bb6e3c145e4a2292eb050277d3
BLAKE2b-256 d40efd2a4e59c7a1ba9f58f3f6769015a408f2cc5b325d32f30a6df36807471f

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