I have used the crypt function in c to encrypt the given string. I have written the following code,
#include
#include
int mai
crypt()
uses DES which is extremely insecure and probably older than you 12 years older than you.
I suggest you use a serious encryption algorithm, such as AES. Many libraries offer such encryption; OpenSSL (crypto.lib) is a good choice for example.
Not answering your actual question since a lot of people already did