From Mike Jagdis · 1996-04-10 02:20 · #75261 in R25C
In reply to Crypt() by Chris Russell
CR> Does anyone here know how to decrypt strings ENCRYPTED woth
CR> the crypt() instruction (from Unix I think) ??
CR>
CR> I have the SALT, so I just need to know HOW to decrypt it
You don't. You, presumably, have a password from the password file. Despite what the kiddies might say it cannot be decrypted. The function is basically DES (assuming a traditional mechanism) however the salt is used to modify the algorithm so it becomes a one way hash. Given the same initial string and the same salt you will get the same byte-string out but given the output byte-string and the salt you cannot get back to the initial string. What you can do is to work through a dictionary encrypting each word using the known salt and see if you get out the known byte-string. This is, of course, what is called a dictionary attack. This is why people are told to use mixtures of upper and lower case with one or more symbols and digits in their password. Some systems even enforce this...
Mike
---
* Origin: The Purple Tentacle +44 1734 266974 (2:252/305)