Welcome Guest, Not a member yet? Register   Sign In
about Encryption Library
#2

OK now I solution this way if you better way pls tel me thank you

PHP Code:
public function encode_me($string$key '') {
        
$this->load->library('encryption');
        return 
rtrim(strtr(base64_encode$this->encryption->encrypt($string) ), '+/''-_'), '=');
    }

    public function 
decode_me($string$key '') {
        
$this->load->library('encryption');
        return 
$this->encryption->decryptbase64_decode(str_pad(strtr($string'-_''+/'), strlen($string) % 4'='STR_PAD_RIGHT)) );
    } 
Reply


Messages In This Thread
about Encryption Library - by seasenx6 - 03-12-2017, 02:33 AM
RE: about Encryption Library - by seasenx6 - 03-12-2017, 02:39 AM
RE: about Encryption Library - by Narf - 03-12-2017, 06:45 AM
RE: about Encryption Library - by Narf - 03-12-2017, 06:47 AM
RE: about Encryption Library - by seasenx6 - 03-12-2017, 05:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB