decrypt function for crypt function php
What is the decrypt function for crypt fun开发者_JS百科ction in PHP
Thanks Bharanikumar
From the PHP Manual
There is no decrypt function, since crypt() uses a one-way algorithm.
5 seconds of searching stackoverflow:
- how do I encrypt and then decrypt the text of username and password used in database class file
- How can I decrypt password string in PHP which was encrypted with crypt?
- php mcrypt - decrypting and encrypting files?
- Encrypt and Decrypt String With Key PHP
- php encrypt and decrypt
I'm sure google has more. Please do a bit of research before you ask a question, it's not fair to just expect everyone else to do all the thinking for you.
You cannot decrypt the crypt function but if you need original string back, use mcrypt_encrypt and mcrypt_decrypt, and choose key based encryption like MCRYPT_RIJNDAEL_256
精彩评论