SyP-

cifrador de contraseñas

Sep 23rd, 2021
559
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3.  
  4. read -p "Ingrese contraseña a cifrar: " PASS
  5. SAL=$RANDOM
  6. echo "La contraseña es: $PASS"
  7. echo "La sal es: $SAL"
  8. echo "La suma de la contraseña y la sal es: ${SAL}${PASS}"
  9. echo "La contraseña cifrada es: $(echo ${SAL}${PASS} | md5sum)"
RAW Paste Data