-
Dummy Encrypt
It wlll add a random number between 0-9 to every sencond charcter in a string i find it very usfull if u are trying to use base64 on a more protected level as if u encrypt the same string twice the output would be different as it insterts random numbers even tho this isent as advance as most encryption tech's it would be a good addition to add to others to make them that little bit more secure from prying eyes.
code :
function dummy_encode($str) {
$len = strlen($str);
$str1=0;
$final="";
while ($str1 < $len) {
$final = $final.substr($str, $str1, 1);
$str1++;
$final = $final.rand(0,9);
}
return $final;
}
function dummy_decode($str) {
$len = strlen($str);
$str1=0;
$final="";
while ($str1 < $len) {
$final = $final.substr($str, $str1, 1);
$str1=$str1+2;
}
return $final;
}
please your advise ???
regards,
-
Re: Dummy Encrypt
Base64 isn't encryption, it is encoding. Short of encrypting the string with a known symmetric or asymmetric standard there is nothing else you can do to make it "more" secure; base64 provides no protection except a level of obfuscation for those who have never encountered it.