https://github.com/zoni/hash.py
A password hasher which generates hashes for /etc/shadow
https://github.com/zoni/hash.py
Last synced: 9 months ago
JSON representation
A password hasher which generates hashes for /etc/shadow
- Host: GitHub
- URL: https://github.com/zoni/hash.py
- Owner: zoni
- Created: 2014-08-10T20:41:28.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-10T20:43:25.000Z (almost 12 years ago)
- Last Synced: 2025-02-22T13:59:49.822Z (over 1 year ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hash.py
=======
*A password hasher which generates hashes for /etc/shadow*
Requirements
------------
`hash.py` requires Python 3.3+ and a Unix-like operating system. It makes use of Python's [crypt](https://docs.python.org/3.3/library/crypt.html) module from the standard library, which in turn directly uses the *[crypt(3)](http://linux.die.net/man/3/crypt)* routine.
Usage
-----
```
hash.py [-h] [-a HASH_ALGORITHM] [-s SALT]
Calculate password hashes for /etc/shadow
optional arguments:
-h, --help show this help message and exit
-a HASH_ALGORITHM, --hash-algorithm HASH_ALGORITHM
select hash algorithm (md5, blowfish, sha256 or
sha512)
-s SALT, --salt SALT supply salt to use (randomly generated by default)
```
License
-------
This code has been released into the public domain without restriction or copyright.