Results 1 to 2 of 2

Thread: Dummy Encrypt

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    8

    Lightbulb 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,
    Last edited by si_the_geek; Jul 16th, 2008 at 05:53 AM. Reason: removed 'advertising' link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width