Is there a standard library function to get hash value of a string in C?

613 Views Asked by At

I am trying to figure out if I can get the hash value of a string using the standard library hash function in C. I am using gcc compiler on Ubuntu.

1

There are 1 best solutions below

0
On

Is there a standard library function to get hash value of a string in C?

No.

gcc compiler on Ubuntu.

I think worth mentioning, there is a super old function crypt used by the Linux system password database (see man 5 shadow) https://www.gnu.org/software/libc/manual/html_node/Passphrase-Storage.html .