Forum Discussion
Hannes_Rapp
Nimbostratus
Oct 27, 2014F5 hashing method to store user passwords - what is it?
Hi,
Question: What is the F5 hashing method used for user-password encryption?
I want to convert any given plain-text string to F5-compliant 34-byte password hash (used by TMOS to store encrypted user passwords as seen below):
auth user fred {
description "fred"
encrypted-password "$1$7bJKKtIK$QtBoSymfzhuJcyjOTiJlz0"
partition Common
partition-access all
role admin
shell bash
}
- It must be doable on a non-F5 box, e.g regular Linux machine. I want to avoid doing the initial conversion on F5 box for automation purpose.
- Seems like some sort of MD5, but not the regular 32-byte version of MD5 as the total length is 34. Also the first 3 symbols of prefix appear to be static
. Can anyone identify this format, or link to relevant documentation?$1$
3 Replies
- Jeff_Costlow_10Historic F5 Account
It is indeed MD5. See Wikipedia's passwd article for the different formats.
$1$$
As of BIG-IP 11.4, we are using $6$ SHA-512 format to store passwords.
Perl can help you to crypt(1) passwords.
perl -e "print crypt('password','$1$salt');"
- Jeff_Costlow_10Historic F5 Account
$1$salt$hash
DevCentral removed the angle brackets.
- Hannes_Rapp
Nimbostratus
Exactly what I was looking for. Thanks Jeff!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects