Welcome Guest, Not a member yet? Register   Sign In
Why does encode() return a different value each time?
#3

[eluser]lanzd[/eluser]
Ahh, thank you. Silly me, I forgot I can view/edit the built in libraries to my hearts content.

In the encrypt library for the encode() function It reads:

Code:
/**
  * Encode
  *
  * Encodes the message string using bitwise XOR encoding.
  * The key is combined with a random hash, and then it
  * too gets converted using XOR. The whole thing is then run
  * through mcrypt (if supported) using the randomized key.
  * The end result is a double-encrypted message string
  * that is randomized with each call to this function,
  * even if the supplied message and key are the same.
  *
  * @access public
  * @param string the string to encode
  * @param string the key
  * @return string
  */

I was about to ask what is the purpose of this if you cannot undo the process, but found the decode() function in the library as well.

Thank you for your help, and sorry for the simple question.

Dan



Messages In This Thread
Why does encode() return a different value each time? - by El Forum - 11-30-2012, 03:46 PM
Why does encode() return a different value each time? - by El Forum - 12-01-2012, 02:19 AM
Why does encode() return a different value each time? - by El Forum - 12-05-2012, 11:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB