Skip to content
Advertisement

Tag: md5

How can I generate a correct CRAM-MD5 response in PHP?

I wish to generate a CRAM-MD5 response for an SMTP server. I can see the theoretical details of how to do so here: CRAM-MD5 Implementation, but I’m looking for the specific PHP code in order to implement it. How can I implement this in PHP? Answer The following PHP code will produce a valid response for CRAM-MD5: In a telnet

PHP XOR Decryption

I have an encrypted parameter V coming from a web page like this: V is encrypted like above: MD5 : XOR : which gives something like: what I want here is the function to decrypt this ‘ecryptedXOR’ using the password, so that I can get the: here’s what I’ve done so far: http://pastebin.com/D9mzx82Q Answer You can XOR by the same

Advertisement