In my previous project i was created a custom encryption function to login. How can i use it in CI. here is my code
function sha_password($username,$password){
$username = strtoupper($username);
$password = strtoupper($password);
return SHA1($username.':'.$password);
}
and i was called like that to get encrypted password
$password = strtoupper(sha_password($username,$password));
how can i do it to work in CI? :?