Password generate

From NAT, 6 Years ago, written in Bash, viewed 595 times.
URL https://code.nat.moe/view/610592ef Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. # nat-passgen: a simple password generate POC.
  3.  
  4. [[ ! -e .natpassgen-key ]] && echo "First time setup: you need a strong Password tree key. Using any long random string." &&  read -p "Password tree key: " passkey && echo $passkey > .natpassgen-key
  5. read -p "Username: " user
  6. echo $user >> .natpassgen-key
  7. pass=$(md5 .natpassgen-key | awk -F\  '{print $4}')
  8. echo Your password: $pass
  9. echo $pass >> .natpassgen-key

Reply to "Password generate"

Here you can reply to the paste above

captcha