https://github.com/tkuchiki/encrypt-pw
Encrypts password
https://github.com/tkuchiki/encrypt-pw
cli encrypt golang md5 password sha256 sha512
Last synced: 2 months ago
JSON representation
Encrypts password
- Host: GitHub
- URL: https://github.com/tkuchiki/encrypt-pw
- Owner: tkuchiki
- License: apache-2.0
- Created: 2015-10-21T03:13:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T12:36:45.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T22:21:50.358Z (3 months ago)
- Topics: cli, encrypt, golang, md5, password, sha256, sha512
- Language: Go
- Size: 9.77 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# encrypt-pw
Encrypts password## Installation
Download from https://github.com/tkuchiki/encrypt-pw/releases
## Usage
```
$ ./encrypt-pw --help
usage: encrypt-pw []Encrypts password (starts from $1$, $5$, $6$ hash)
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-h, --hash="sha512" Hash algorithm (sha512, sha256, md5)
-r, --rounds=5000 Number of hashing rounds (min: 1000, max: 999999999)
-c, --confirm Confirm password
-p, --password=PASSWORD Password
--version Show application version.$ ./encrypt-pw
Enter password:
$6$eVuwo0XKesWWkbv3$/L.Sw8RJuk69aamprVSN.id2tCWJ0OiSmRJ12JNyahAdPopx7aHOWDvZ/PYustFFQ6Eu7vp22FYLqvXTUIo9I0$ ./encrypt-pw -c
Enter password:
Enter same password again:
$6$59LB.ugo8iWh4dJf$4YjghX24znjgRC5MPF/h/f.FP8K37EiWBjmaybGWIMFTEQRPaQUDibCUcg72qRx54qW0As3GsvkCEYShEifMA.$ ./encrypt-pw -p your-password
$6$N2UrLLeq3i3560Vv$cOC/xvVRHo1vGAJcsp788UrkUIg1Bc66.pwYRhcQFfiI4lor8SDQQKgW8zT7qdc4bflbEnkTGEyulU7v9DCcT$ ./encrypt-pw -h sha256 -p your-password
$5$m0Q22Redjm5D7.zH$rvRH/obRUtCu9osnxxOYcg0JOTLoDpPnSLagpU9gn6B$ ./encrypt-pw -h md5 -p your-password
$1$CaybI5OM$p3F4OZCYEmOLOCtZmmbAw1$ ./encrypt-pw -r 100000 -p your-password
$6$rounds=100000$g9EPi5gIxSX2cpMR$UVIstanJwu4uCtNpW1HIdQmu.Y4yPm9HzVL1mcwoz0E87Gn0FI7AunYy5wOQ8FBArwlIQc6N6YZITsDW6aZZh/
```## Build
```
$ go get
$ go build
```## Dependency
This software includes the work that is distributed in the Apache License 2.0.
- https://github.com/bgentry/speakeasy
This software includes the work that is distributed in the 2-clause BSD License
- https://github.com/GehirnInc/crypt
This software includes the work that is distributed in the MIT License
- https://github.com/Sirupsen/logrus