https://github.com/jweslley/htauth
htauth generates encrypted passwords for basic and digest authentication. Similar to htdigest and htpasswd.
https://github.com/jweslley/htauth
htdigest htpasswd http tool
Last synced: 2 months ago
JSON representation
htauth generates encrypted passwords for basic and digest authentication. Similar to htdigest and htpasswd.
- Host: GitHub
- URL: https://github.com/jweslley/htauth
- Owner: jweslley
- License: mit
- Created: 2018-02-25T20:11:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T20:24:07.000Z (about 8 years ago)
- Last Synced: 2024-06-20T13:34:37.331Z (almost 2 years ago)
- Topics: htdigest, htpasswd, http, tool
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# htauth
**htauth** generates encrypted passwords for basic and digest authentication.
It's similar to Apache support programs [*htdigest*][htdigest] and [*htpasswd*][htpasswd]. However, **htauth** is much more simpler and focus only in generate encrypted passwords to standard output.
## Installing
[Download][] and put the binary somewhere in your path.
### Building from source
git clone http://github.com/jweslley/htauth
make
## Options
* **-h string** Hashing encryption for passwords. Available hashing algorithms: bcrypt, sha1, plain. (default "bcrypt")
* **-r string** The realm name to which the user name belongs. Used only to generate passwords for digest authentication.
## Usage
In order to generate an encrypted password, just execute the command below:
htauth
You will be prompted to inform your password and the encrypted password will be printed.
To save the encrypted password, redirect the output to a file:
htauth stark > /path/to/htpasswd
Encrypted passwords for digest authentication can be generated by using the `realm` option:
htauth -r avengers.com stark > /path/to/htdigest
## Bugs and Feedback
If you discover any bugs or have some idea, feel free to create an issue on GitHub:
http://github.com/jweslley/htauth/issues
## License
MIT license. Copyright (c) 2018 Jonhnny Weslley
See the LICENSE file provided with the source distribution for full details.
[download]: https://github.com/jweslley/htauth/releases
[htpasswd]: https://httpd.apache.org/docs/2.2/programs/htpasswd.html
[htdigest]: https://httpd.apache.org/docs/2.2/programs/htdigest.html