Skip to content

sanzen-sekai/mypassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

mypassword

generate random password

mypassword # default: -l 8
mypassword -l 16
mypassword -l 32

generate password by passphrase

mypassword -p
Table of Contents

Requirements

  • bash
  • sha512sum or shasum

Usage

mypasswrod -p
command: (sha512sum or shasum -a 512)
passphrase(1/4):
passphrase(2/4):
passphrase(3/4):
passphrase(4/4):
confirm(1/4):
confirm(2/4):
confirm(3/4):
confirm(4/4):
service: # Enter service name
stretch: # Enter start stretch (show 10 lines)
0: <password>
1: <password>
...
  1. enter 4 word of passphrase
  2. confirmation passphrase
  3. enter service name
  4. enter start stretch
  5. then show generated password

spec

  1. create searvice name hash (with shasum)
  2. re-hash stretch count
  3. (int)hash + (int)character for each passphrase
  4. join result as character
  5. join 4 word passphrase with = - . - =

License

mypassword is licensed under the MIT license.

Copyright © since 2015 shun.fix9

About

generate password

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages