I have used the crypt function in c to encrypt the given string. I have written the following code,
#include<stdio.h>
#include<unistd.h>
int main()
{
printf("%s\n",crypt("passwd",1000));
}
But the above code threw an error ,"undefined reference to `crypt'". What is the problem in the above code.
Thanks in advance.
crypt
do hashing instead of encryption? – Rhineharthash
wouldn't it? – Dent