Let's say a clear password is encrypted using crypt() C function in Linux. Prototype:
char *crypt(const char *key, const char *salt);
Example with using MD5 method ("$1$" at beginning of salt parameter):
char *clear_password = ...
char *encrypted_password = crypt(clear_password, "#$1$FedCBa$")
Question: What would be the code to decrypt the encrypted password and get back the clear password in result?
P.S. the example refers to MD5 method but the question is more general and concerns any method used by crypt() function (MD5, Blowfish, SHA-256, ...).