Welcome Guest, Not a member yet? Register   Sign In
encrypt->decode does NOTHING.
#2

[eluser]Derek Allard[/eluser]
Be sure you are decode I a string that you'd previously encoded.

What happens if you run this?
Code:
function test()
    {
        $this->load->library('encrypt');

        $msg = 'One day, the robots will come for us';
        $encrypted_string = $this->encrypt->encode('My secret message');
        $plaintext_string = $this->encrypt->decode($encrypted_string);

        echo "<p>The original string was: $msg</p>";
        echo "<p>Encoded, that becomes: $encrypted_string</p>";
        echo "<p>If I take that encoded version, and run it through decode() I get: $plaintext_string</p>";
    }


Messages In This Thread
encrypt->decode does NOTHING. - by El Forum - 07-20-2008, 06:05 AM
encrypt->decode does NOTHING. - by El Forum - 07-20-2008, 09:02 AM
encrypt->decode does NOTHING. - by El Forum - 07-20-2008, 09:42 AM
encrypt->decode does NOTHING. - by El Forum - 07-20-2008, 09:45 AM
encrypt->decode does NOTHING. - by El Forum - 07-20-2008, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB