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.
Release files for sageutils 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sageutils-0.1.8.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sageutils-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / sageutils-0.1.8.tar.gz
| Download URL | sageutils-0.1.8.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77b11571d8f3a8af557448efdbfc8fd97eab9ffcf716eba28536ed2ead26bc12
|
|
BLAKE2b-256 checksum How to use checksums |
1ff2c40af300043b42e626846b91bf54b5363c1611aadecb15bf616e2a7e4cea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sageutils-0.1.8-py3-none-any.whl
| Download URL | sageutils-0.1.8-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
701e4a8cd7e9889b1b4b9263a9112a14702ae03953850bb34899f22e6d33b0ad
|
|
BLAKE2b-256 checksum How to use checksums |
689c167aad71add5100c31f576deb9358f6a92b7dc0f26a1c48b255874ad756c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|