Create MD5 hash from string
Hey,
Is there any tool to create a hashed MD5 string ? many applications starting to support the password field encrypted starting with {MD5}. Thanks. |
Have you looked at md5sum?
|
ye, I tried but it seems it doesn't fit openldap's MD5, anyone know why?
|
Perhaps it's not comparing the same data.
|
slappasswd(8)
I'm sure you're still looking for this. ;) Or, for those of you who stumble across this looking for the answer, like I did...
# slappasswd -h '{MD5}' -s 'mynewpassword' {MD5}jnA4PGn3o7fqP3GwLz6XMQ== I'm pretty sure that's what you were looking for. As I understand it, that's the crypt function using the MD5 algorithm for password hashing. I don't believe the md5sum command is useful in this case. |
I am not sure I understood your requirements clearly. Could you rephrase it in a slightly more detailed manner.
Thanks in advance! :) Debian Kernel |
MD5 hashing
try this
echo "STRING" | md5sum This will give you the md5 hashed value. linux1:~# echo "STRING" | md5sum 71f48b3561c9e187a7f356729c929a69 - linux1:~# |
Quote:
Code:
uuidgen -r and: Code:
uuidgen -t |
echo & md5sum
dipu183 you left out an important part:
Quote:
Code:
echo -n "STRING" | md5sum Code:
md5=$(echo -n "your string here" | md5sum | cut -f1 -d' ') |
Quote:
--RayJ |
All times are GMT -5. The time now is 07:54 PM. |