Hash Encode Password Generator
Project description
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_
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hepg-0.1.0.tar.gz.
File metadata
- Download URL: hepg-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d787370ec80795ad902967de5386d700841d37a4eee4ee54d9e32e92afffac81
|
|
| MD5 |
ad321909cbc13cba1abcef2251bea02c
|
|
| BLAKE2b-256 |
4d3732fe532dab445a7aebf4a7cf6e2f3fd7fc31c3c9d993368dda0c0443409a
|
File details
Details for the file hepg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hepg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6ae414957b9bc893d4e1b6eef681f90e4f93025b2b47ad5888c47b65ac7ded
|
|
| MD5 |
27fcb15722064e27ac62678595c35945
|
|
| BLAKE2b-256 |
3a951f638e972b5777d5672c90b94a479693bba5b6c982b00f685fa607e684f5
|