CodeIgniter - Why does encrypting with the same key produce different results?

后端 未结 3 1408
遇见更好的自我
遇见更好的自我 2021-01-29 01:16

I use codeigniter a lot, however I am not really understanding why when I use the encryption library in version 3 the encryption string never comes out the same, even using the

3条回答
  •  不要未来只要你来
    2021-01-29 01:56

    Try the md5 encryption its good and best till now. In controller before send password like this:

    md5($this->input->post('password));
    

    or use hash() or SHA256/SHA512 they do it well.

    It will do the trick.

    Enjoy!

提交回复
热议问题