Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    how secure is this?

    PHP Code:
    function encode($data) {
    $code str_replace("a""+f"$data);
    $code1 str_replace("b""+g"$code);
    $code2 str_replace("c""+h"$code1);
    $code3 str_replace("d""+i"$code2);
    $code4 str_replace("e""+j"$code3);
    $code5 str_replace("k""+o"$code4);
    $code6 str_replace("l""+p"$code5);
    $code7 str_replace("m""+q"$code6);
    $code8 str_replace("n""+r"$code7);
    $code9 str_replace("s""+w"$code8);
    $code10 str_replace("t""+x"$code9);
    $code11 str_replace("u""+y"$code10);
    $code12 str_replace("v""+z"$code11);
    $code13 str_replace("1""+6"$code12);
    $code14 str_replace("3""+8"$code13);
    $code15 str_replace("5""+2"$code14);
    $code16 str_replace("7""+0"$code15);
    $code17 str_replace("9""+4"$code16);
    $code18 str_replace(" ""+*"$code17);
    $code19 $code18;
    $code20 str_replace("!""+~"$code19);
    $code21 str_replace(",""+."$code20);
    $code22 str_replace(";""+>"$code21);
    $code23 str_replace("%""+@"$code22);
    $code24 str_replace("$""+="$code23);
    $code25 str_replace("#""+^"$code24);
    $code26 str_replace("_""+)"$code25);
    $code27 str_replace("(""+:"$code26);
    $code28 str_replace("&""+<"$code27);
    $code29 str_replace("A""+F"$code28);
    $code30 str_replace("B""+G"$code29);
    $code31 str_replace("C""+H"$code30);
    $code32 str_replace("D""+I"$code31);
    $code33 str_replace("E""+J"$code32);
    $code34 str_replace("K""+O"$code33);
    $code35 str_replace("L""+P"$code34);
    $code36 str_replace("M""+Q"$code35);
    $code37 str_replace("N""+R"$code36);
    $code38 str_replace("S""+W"$code37);
    $code39 str_replace("T""+X"$code38);
    $code40 str_replace("U""+Y"$code39);
    $code41 str_replace("V""+Z"$code40);
    $encoded $code41;
    echo(
    $encoded);
    }
    function 
    decode($data) {
    $code str_replace("+f""a"$data);
    $code1 str_replace("+g""b"$code);
    $code2 str_replace("+h""c"$code1);
    $code3 str_replace("+i""d"$code2);
    $code4 str_replace("+j""e"$code3);
    $code5 str_replace("+o""k"$code4);
    $code6 str_replace("+p""l"$code5);
    $code7 str_replace("+q""m"$code6);
    $code8 str_replace("+r""n"$code7);
    $code9 str_replace("+w""s"$code8);
    $code10 str_replace("+x""t"$code9);
    $code11 str_replace("+y""u"$code10);
    $code12 str_replace("+z""v"$code11);
    $code13 str_replace("+6""1"$code12);
    $code14 str_replace("+8""3"$code13);
    $code15 str_replace("+2""5"$code14);
    $code16 str_replace("+0""7"$code15);
    $code17 str_replace("+4""9"$code16);
    $code18 str_replace("+*"" "$code17);
    $code19 $code18;
    $code20 str_replace("+~""!"$code19);
    $code21 str_replace("+."","$code20);
    $code22 str_replace("+>"";"$code21);
    $code23 str_replace("+@""%"$code22);
    $code24 str_replace("+=""$"$code23);
    $code25 str_replace("+^""#"$code24);
    $code26 str_replace("+)""_"$code25);
    $code27 str_replace("+:""("$code26);
    $code28 str_replace("+<""&"$code27);
    $code29 str_replace("+F""A"$code28);
    $code30 str_replace("+G""B"$code29);
    $code31 str_replace("+H""C"$code30);
    $code32 str_replace("+I""D"$code31);
    $code33 str_replace("+J""E"$code32);
    $code34 str_replace("+O""K"$code33);
    $code35 str_replace("+P""L"$code34);
    $code36 str_replace("+Q""M"$code35);
    $code37 str_replace("+R""N"$code36);
    $code38 str_replace("+W""S"$code37);
    $code39 str_replace("+X""T"$code38);
    $code40 str_replace("+Y""U"$code39);
    $code41 str_replace("+Z""V"$code40);
    $decoded $code41;
    echo(
    $decoded); 
    Once late at night(well almost morning) I was bored and decided to make a simple encryption script. Nothing built for actual use.
    How easily would this be to crack without that^^ code?


    The one and only,
    ILLINI
    Why not thank me?

    http://adamsworld.name

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    It is extrordinarily easy to decode. Any algorythm which uses simple replaces is pointless. Algorythms work using mathmatical methods.

    ~Phil~


  •  

    Posting Permissions

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