Enter your keyword

Blog

How to User ID Encryption and Decryption

Use this Function in function.php

function user_encrypt($sData){
$idus=(double)$sData*425325.24;
return base64_encode($idus);
}

function user_decrypt($sData){
$url_id=base64_decode($sData);
$idus=(double)$url_id/425325.24;
return $idus;
}
echo user_encrypt($user_id);
echo user_decrypt($user_id);

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.