Hash Encode Password Generator
A library that generates keys using hashing and encoding.
The difference with other password generators is that you use a simple word to generate complex passwords.
Setting your pet name as a password is not secure. But having a method generating a complex password out of it, can be.
How it works
The process works as follows:
- You have a predefined string which you know and will contain your password eg "My Dog's name is {input}"
- You replace input with your pet name eg "simba". That makes the string "My Dog's name is simba"
- This string is now goes through hashing with a chosen algorithm (MD5, SHA256, SHA512)
- The hashed string now is encoded in a chosen format (hex, base32, base64, base85)
Complexity support
Time constraints
In the formatted string, some date functions are supported to make encode time in it, so that you can create an expiration effect if used in the server:
- Y : current year
- M : current year and month
- D : current year month and day
- H : current year month day and hour
- W : current year and week in year
- Q : current year and quarter of year
PI digits
If you want to have a complex string without remebering it, the PI function will add the PI digits between the range of (pi-from to pi-to). That means if you add {PI} in your formatted string and declare pi-from=321 pi-to =1231, it will insert the digits between these positions. (It starts from position 0 being the 3 in 3.14)
Examples
hepg -t "Hello {input}" -i "World" -a sha256 -e base64
Output:
pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4
hepg -t "Hello {input}" -i "World" -a sha256 -e hex
Output:
a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
hepg -t "Hello {input}" -i "World" -a sha512 -e base85
Output:
EOh-B?XTDlgh#N{XF={HJASuK(iEBsvAHB~vjc+ieuX`Sg>jw^XUp0Rs*h1;5M*IpWLn~S%N4(|M1Mt_
Metadata
Release files for hepg 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hepg-0.1.0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hepg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / hepg-0.1.0.tar.gz
| Download URL | hepg-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d787370ec80795ad902967de5386d700841d37a4eee4ee54d9e32e92afffac81
|
|
BLAKE2b-256 checksum How to use checksums |
4d3732fe532dab445a7aebf4a7cf6e2f3fd7fc31c3c9d993368dda0c0443409a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / hepg-0.1.0-py3-none-any.whl
| Download URL | hepg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf6ae414957b9bc893d4e1b6eef681f90e4f93025b2b47ad5888c47b65ac7ded
|
|
BLAKE2b-256 checksum How to use checksums |
3a951f638e972b5777d5672c90b94a479693bba5b6c982b00f685fa607e684f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|