Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter extended Encrypt class to support Advanced encryption algorithms with OpenSSL
#3

[eluser]digitalhuman[/eluser]
[quote author="tanis" date="1355406243"]I like your class, but there are tow things that could be further improved:

a) let the developer pass the IV to the encryption function so that a different IV can be used for each encrypted string.

b) I've seen that you're using the IV both for the IV and the password. It would be better to let the developer pass the password as input to the function as well.

My $0.02 Smile
[/quote]

a) Hahaha true, well the user can pass his own IV by using $this->encrypt->set_iv("myotheriv"), before using the ecrypt method.

b) Yes i use IV for both password and IV and i need to change that. Thanks for reminding me Smile


Messages In This Thread
CodeIgniter extended Encrypt class to support Advanced encryption algorithms with OpenSSL - by El Forum - 12-13-2012, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB