Results 1 to 2 of 2

Thread: Dummy Encrypt

Hybrid 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

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

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