Jump to content


md5 Encrypt/Decrypt not working

password md5 encrypt

  • Please log in to reply
1 reply to this topic

#1 zhumarlin

zhumarlin

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 01 June 2012 - 02:56 PM

I have read this in many times : http://www.grocerycr...tiondecryption/ [EXAMPLE] Password field and password encryption/decryption

But when i post a new record, the password isn't encrypted with md5, and i don't know what kind method of that (sha1, or ??)

on my config.php file i write this :

$config['encryption_key'] = "md5";

i think that's right.

so what is the problem..?

one more, could you explain this part..?
function encrypt_password_callback($post_array, $primary_key = null)
{
$this->load->library('encrypt');
$key = 'super-secret-key';
$post_array['password'] = $this->encrypt->encode($post_array['password'], $key);
return $post_array;
}

what is 'super-secret-key' ? what if i change it with md5..?

thank you and sorry for my bad english...

#2 cangak

cangak

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 30 June 2012 - 12:47 AM

all you have to do is read this.
  • understanding CI by reading the user_guide
  • read this one






Also tagged with one or more of these keywords: password, md5, encrypt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users