Differences in password hash calculations
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I would like to make sure I understand the /etc/shadow
file, especially the salt/hash part.
Each line is in the format:
username:passwd:last:may:must:warn:expire:disable:reserved
The passwd field is in the format : $x$salt$hash
Now, I take the hash (from the root user for example) and translate it in base64 (standard) with the command:
tr ./0-9A-Za-z A-Za-z0-9+/ hash
Why does an online hash calculator of "salt+password" give a different result?
I use a SHA-512 hash function according to the $6$
before the salt value.
I compare the two hash strings in the base64 standard encoding.
I can create the same hash string with the mkpasswd
command using the salt but I can't figure out why I can't do that with an online hash calculator.
Thank you for your help.
passwd shadow base64
New contributor
add a comment |Â
up vote
0
down vote
favorite
I would like to make sure I understand the /etc/shadow
file, especially the salt/hash part.
Each line is in the format:
username:passwd:last:may:must:warn:expire:disable:reserved
The passwd field is in the format : $x$salt$hash
Now, I take the hash (from the root user for example) and translate it in base64 (standard) with the command:
tr ./0-9A-Za-z A-Za-z0-9+/ hash
Why does an online hash calculator of "salt+password" give a different result?
I use a SHA-512 hash function according to the $6$
before the salt value.
I compare the two hash strings in the base64 standard encoding.
I can create the same hash string with the mkpasswd
command using the salt but I can't figure out why I can't do that with an online hash calculator.
Thank you for your help.
passwd shadow base64
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to make sure I understand the /etc/shadow
file, especially the salt/hash part.
Each line is in the format:
username:passwd:last:may:must:warn:expire:disable:reserved
The passwd field is in the format : $x$salt$hash
Now, I take the hash (from the root user for example) and translate it in base64 (standard) with the command:
tr ./0-9A-Za-z A-Za-z0-9+/ hash
Why does an online hash calculator of "salt+password" give a different result?
I use a SHA-512 hash function according to the $6$
before the salt value.
I compare the two hash strings in the base64 standard encoding.
I can create the same hash string with the mkpasswd
command using the salt but I can't figure out why I can't do that with an online hash calculator.
Thank you for your help.
passwd shadow base64
New contributor
I would like to make sure I understand the /etc/shadow
file, especially the salt/hash part.
Each line is in the format:
username:passwd:last:may:must:warn:expire:disable:reserved
The passwd field is in the format : $x$salt$hash
Now, I take the hash (from the root user for example) and translate it in base64 (standard) with the command:
tr ./0-9A-Za-z A-Za-z0-9+/ hash
Why does an online hash calculator of "salt+password" give a different result?
I use a SHA-512 hash function according to the $6$
before the salt value.
I compare the two hash strings in the base64 standard encoding.
I can create the same hash string with the mkpasswd
command using the salt but I can't figure out why I can't do that with an online hash calculator.
Thank you for your help.
passwd shadow base64
passwd shadow base64
New contributor
New contributor
edited 5 mins ago
Kusalananda
110k14213337
110k14213337
New contributor
asked 11 mins ago
Maxence Faldor
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maxence Faldor is a new contributor. Be nice, and check out our Code of Conduct.
Maxence Faldor is a new contributor. Be nice, and check out our Code of Conduct.
Maxence Faldor is a new contributor. Be nice, and check out our Code of Conduct.
Maxence Faldor is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475693%2fdifferences-in-password-hash-calculations%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password