Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Ingrese contraseña: " contrasena
- echo "Contraseña sin cifrar: $contrasena"
- salt=$RANDOM
- contrasena_cifrada=$(echo ${contrasena}${salt} | md5sum)
- echo "Sal añadida: $salt"
- echo "Contraseña cifrada: $contrasena_cifrada"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement