Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created March 1, 2010 01:14
Show Gist options
  • Save mrchrisadams/317987 to your computer and use it in GitHub Desktop.
Save mrchrisadams/317987 to your computer and use it in GitHub Desktop.
# lets create a password first:
chrisadams@brie[~]
[1:11]:openssl passwd -1 fred
$1$/1w0JaZM$IaBQcL34WrpY0MTGB2wYq/
$1$/1w0J..........................
# and now, if we select the first 8 characters (our salt, $1$/1w0J)
# we should be able to recombine it with the the password to
# get back our initial hash:
chrisadams@brie[~]
[1:11]:openssl passwd -1 -salt $1$/1w0J fred
$1$$/1w0J$HGg4kh9PkoPWxIHJcc05V/
# ....
1st hash: $1$/1w0JaZM$IaBQcL34WrpY0MTGB2wYq/
2nd hash: $1$$/1w0J$HGg4kh9PkoPWxIHJcc05V/
# D'oh!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment