Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-23-2013, 07:39 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › HTML / CSS / Javascript v
« Previous 1 2 3 4 5 ... 12 Next »

[Share] Kriptografi iseng

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
[Share] Kriptografi iseng
03-29-2012, 10:40 AM
Post: #1
candragati Offline
./Devilz Officer
Posts: 221
Joined: Feb 2012
Reputation: 25
Thumbs Up [Share] Kriptografi iseng
Semua orang perlu berkomunikasi. Salah satunya lewat tulisan.
Tapi untuk mengirim pesan yang sifatnya rahasia, orang lalu menciptakan teknik kriptografi supaya gak semua orang bisa membacanya.

Untuk melakukan kriptografis, perlu dibuatkan algoritma nya. Tujuannya supaya yang bacanya bingung, dan kitanya juga bingung
pusing

kalo sama-sama bingung, lah yang mau bacanya siapa ??
angel1

Salah satu kriptografi klasik adalah Vignere chiper.
Kriptografi kayak gini menggunakan kunci untuk mencampur adukkan teks aslinya sehingga hasil outputnya jadi berantakan.

Code:
<!-- sumber : http://jnanayoga-online.blogspot.com/2011/02/program-enkripsi-vigenere-cipher-dengan.html -->

<html>
   <head>
     <title>Vignere Cipher</title>
     <!--
       CryptoMX Tools
       Copyright (C) 2004 - 2006 Derek Buitenhuis

       This program is free software; you can redistribute it and/or
       modify it under the terms of the GNU General Public License
       as published by the Free Software Foundation; either version 2
       of the License, or (at your option) any later version.

       This program is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       GNU General Public License for more details.

       You should have received a copy of the GNU General Public License
       along with this program; if not, write to the Free Software
       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     -->

   </head>
   <body bgcolor=#FFFFFF text=#000000>
     <td>
       <script>
function Vigenere (input, key, forward){
if (key == null)
key = "";
var alphabet =   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "abcdefghijklmnopqrstuvwxyz";

// Validate key:
key = key . toUpperCase ();
var key_len = key . length;
var i;
var adjusted_key = "";
  
for (i = 0; i < key_len; i ++)   {
var key_char = alphabet . indexOf (key . charAt (i));
if (key_char < 0)
continue;
adjusted_key += alphabet . charAt (key_char);
}
  
key = adjusted_key;
key_len = key . length;
if (key_len == 0)   {
alert ('You forgot to supply a key!');
key = "a";
key_len = 1;
}

// Transform input:
var input_len = input . length;
var output = "";
var key_index = 0;
var in_tag = false;
for (i = 0; i < input_len; i ++)   {
var input_char = input . charAt (i);
if (input_char == "<")
       in_tag = true;
     else if (input_char == ">")
       in_tag = false;
      
     if (in_tag)     {
       output += input_char;
       continue;
     }
    
     var input_char_value = alphabet . indexOf (input_char);
     if (input_char_value < 0)     {
       output += input_char;
       continue;
     }
    
     var lowercase = input_char_value >= 26 ? true : false;
     if (forward)
       input_char_value += alphabet . indexOf (key . charAt (key_index));
     else
       input_char_value -= alphabet . indexOf (key . charAt (key_index));
     input_char_value += 26;
     if (lowercase)
       input_char_value = input_char_value % 26 + 26;
     else
       input_char_value %= 26;
     output += alphabet . charAt (input_char_value);
     key_index = (key_index + 1) % key_len;
   }
   return output;
}

function runcoder (dir) {
   document . form . output . value = Vigenere (document . form . input . value, document . form . key . value, dir);
/*  A bug in IE prevents this section from working correctly.
   with (document . form)   {
     output . value = Vigenere (input . value, key . value, dir);
   }
*/
}

     </script>

     <form name=form>
       <table border cellspacing="2">
         <tr>
           <td>
             Input:<br>
             <input type=button onClick="this.form.input.value='';" value="clear">
           </td>
           <td>
             <textarea name=input rows=10 cols=60 wrap=virtual></textarea>
           </td>
         </tr>
         <tr>
           <td>
             Key:<br>
             <input type=button onClick="this.form.key.value='';" value="clear">
           </td>
           <td>
             <textarea name=key rows=5 cols=60 wrap=virtual></textarea>
           </td>
         </tr>
         <tr>
           <td>Coding direction:</td>
           <td>
             <input type=button value="encode" onClick="runcoder (true);">
             <input type=button value="decode" onClick="runcoder (false);">
           </td>
         </tr>
           <td>
             Output:<br>
             <input type=button onClick="this.form.output.value='';" value="clear">
           </td>
           <td>
             <textarea name=output rows=10 cols=60 wrap=virtual></textarea>
           </td>
         </table>
       </form>
   </body>
</html>
Berikut ini beberapa file HTML/Javascript yang berhasil ane rangkum dari berbagai sumber. Diurutkan berdasarkan tingkat kerumitannya. stress


Code:
<!-- sumber : widget opera, Text to Hack Converter-->
<html >
<head>
  <title>Text-To-Hack Converter</title>
  
  <script>
  function jsRand(min,max){
    if(max){
        return Math.floor(Math.random()*(max-min+1))+min;
    }
    else{
        return Math.floor(Math.random()*(min+1));
    }
}

function convertNormal(){
    out = document.getElementById('inputText').value;

    out = out.replace(/a/gi,'4');
    out = out.replace(/e/gi,'3');
    out = out.replace(/i/gi,'!');
    out = out.replace(/l/gi,'1');
    out = out.replace(/o/gi,'0');
    out = out.replace(/s/gi,'$');
    out = out.replace(/t/gi,'7');

    document.getElementById('outputText').value = out;
}

function convertGoogle(){
    var input = document.getElementById('inputText').value;
    out = '';
    for(i=0,max=input.length;i<max;i++){
        char=input.charAt(i);
        if (jsRand(0,1) == 1){
            char = char.toUpperCase();
        }
        out += char;
    }

    out = out.replace(/a/gi,'4');
    out = out.replace(/b/gi,'8');
    out = out.replace(/c/gi,'(');
    out = out.replace(/e/gi,'3');
    out = out.replace(/i/gi,'|');
    out = out.replace(/l/gi,'1');
    out = out.replace(/o/gi,'0');
    out = out.replace(/s/gi,'z');
    out = out.replace(/t/gi,'+');

    document.getElementById('outputText').value = out;
}

function configOk(){
    if (document.getElementById('mode1').checked){
        document.getElementById('inputText').onkeyup = "convertNormal()";
        convertNormal();
    }
    else{
        document.getElementById('inputText').onkeyup = "convertGoogle()";
        convertGoogle();
    }

   document.getElementById('configView').style.display = "block";
}

  </script>
</head>

<body>

<div id="configView">
  <h1>Change mode:</h1>
  
  <input type="radio" name="mode" id="mode1" value="1" checked="checked" /><label for="mode1">Normal</label><br />
  <input type="radio" name="mode" id="mode2" value="2" /><label for="mode2">Google H4x0r</label><br />
  <button type="button" onclick="configOk()">OK</button>
</div>
<p>

<div id="mainView">
  <div id="mainEditableContent">
    <textarea name="inputText" id="inputText" onkeyup="convertNormal()"></textarea>
    <p>
    <textarea name="outputText" id="outputText"></textarea>
  </div>
</div>
</body>
</html>
Code:
<!-- sumber : http://www.revfad.com/flip.html -->

<html>
    <head>
    <!-- Help IE with utf8; thank you, Glards! -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="description" content="Turn text upside down. Rotate letters 180 degrees with Unicode.">
    <title>Flip</title>
    <style type="text/css">
        textarea { font-family: "Arial Unicode MS", Batang }
        h1 { margin-bottom: 2px;}
    </style>
    <script>
        function flip() {
            var result = flipString(document.f.original.value.toLowerCase());
            document.f.flipped.value = result;
        }

        function flipString(aString) {
            var last = aString.length - 1;
            //Thanks to Brook Monroe for the suggestion to use Array.join
            var result = new Array(aString.length)
            for (var i = last; i >= 0; --i) {
                var c = aString.charAt(i)
                var r = flipTable[c]
                result[last - i] = r ? r : c
            }
            return result.join('')
        }

        var flipTable = {
            a : '\u0250',
            b : 'q',
            c : '\u0254', //open o -- from pne
            d : 'p',
            e : '\u01DD',
            f : '\u025F', //from pne
            g : '\u0183',
            h : '\u0265',
            i : '\u0131', //from pne
            j : '\u027E',
            k : '\u029E',
            //l : '\u0283',
            m : '\u026F',
            n : 'u',
            r : '\u0279',
            t : '\u0287',
            v : '\u028C',
            w : '\u028D',
            y : '\u028E',
            '.' : '\u02D9',
            '[' : ']',
            '(' : ')',
            '{' : '}',
            '?' : '\u00BF', //from pne
            '!' : '\u00A1',
            "\'" : ',',
            '<' : '>',
            '_' : '\u203E',
            '\u203F' : '\u2040',
            '\u2045' : '\u2046',
            '\u2234' : '\u2235',
            '\r' : '\n' //thank you, Yeeliberto
        }

        for (i in flipTable) {
            flipTable[flipTable[i]] = i
        }
    </script>
    </head>
    <body>
        <h1>Flip</h1>
        <form name="f">Original:
            <br>
            <textarea rows="5" cols="50" name="original" onkeyup="flip()"></textarea> <input value="Flip" onclick="flip()" type="button">
            <br>
            Flipped:
            <br>
            <textarea rows="5" cols="50" name="flipped"></textarea>
        </form>
    </body>
</html>
Code:
<!-- sumber : http://alaygenerator.co.cc -->

<HTML>
    <HEAD>
        <TITLE>ALAY!!! Text Generator</TITLE>
    <script>
    <!--
    function HumanToABG(form){
        var abgteks="";
        var stemp;
        var i,j;
        var acak;
        var aseli=form.aseli.value;
            
        var TabelHuruf="AEGIOSZ";
        var TabelAngka="4361052"; //01234567890
            
        var TabelVokal="AIUEO";
            
        if(aseli.length){
            //modifikasi huruf besar kecil kecil
            if(form.pilihan[0].checked==true){
                for(i=0;i<aseli.length;i++){
                    acak = Math.round(2*Math.random())
                    if(acak)
                    abgteks=abgteks+aseli.charAt(i).toLowerCase();
                    else
                    abgteks=abgteks+aseli.charAt(i).toUpperCase();
                }
            }    
            else
            abgteks=aseli;
                    
            //Modifikasi huruf jadi angka
            var terganti=0;
            stemp="";
            if(form.pilihan[1].checked==true){
                for(i=0;i<aseli.length;i++){
                    acak=Math.round(2*Math.random())
                    terganti=0;
                    if(acak){
                                            
                        for(j=0;j<TabelHuruf.length;j++){    
                            if(abgteks.charAt(i).toUpperCase()==TabelHuruf.charAt(j)){
                                stemp=stemp+TabelAngka.charAt(j);
                                                            
                                terganti=1;
                                break;
                            }
                        }
                    }               
                                    
                    if(terganti==0) //huruf tidak dapat diganti
                    stemp=stemp+abgteks.charAt(i);
                }
                abgteks=stemp;
            }    
                    
            //disingkat-singkat biar pendek
            stemp="";
            if(form.pilihan[2].checked==true){
                for(i=0;i<aseli.length;i++){
                    acak=Math.round(2*Math.random())
                    terganti=0;
                    if(acak){
                                                
                        for(j=0;j<TabelVokal.length;j++){    
                            if(aseli.charAt(i).toUpperCase()==TabelVokal.charAt(j)){
                                if((aseli.charAt(i-1)!=" ")&&(i>0)){
                                    //stemp=stemp+TabelAngka.charAt(j); hilangkan saja
                                    terganti=1;
                                }
                                break;
                            }
                        }
                    }               
                                    
                    if(terganti==0) //huruf tidak dapat diganti
                    stemp=stemp+abgteks.charAt(i);
                }
                abgteks=stemp;
            }    
                    
                    
            form.abg.value=abgteks;
        }
        else{
            form.abg.value="Ya, anda sudah bukan ABG lagi. Kakek tolong itu diisi dulu form-nya";
        }
    }
    // -->
    </script>
    </HEAD>

    <BODY BGCOLOR=LIGHTGREEN>
    <BR>
    <FONT COLOR=RED>
    <H1> The Simple "ALAY" Text Generator </H1>
    <H3>Generator buat bikin tulisan orang-orang alay yang menyebalkan... menjijikkan...</H3>
    </FONT>

    <BR><BR>
    <I>
    <P>Script sederhana ini dapat digunakan untuk membuat Text ALAY yang susah diketik oleh manusia biasa.</P>
    <P>Masukkan teks normal yang ingin dibuat menjadi ALAY Text</P>
    </I>


    <FORM>
        <TABLE width="700" align="center">
            <TBODY>
                <TR>
                    <TH>Teks Normal</TH>
                    <TD>&nbsp;&nbsp;</TD>
                    <TH>Teks ALAY</TH>
                
                </TR>
                <TR>
                    <TH><TEXTAREA name="aseli" cols="45" rows="10">Masukkan kalimat yang ingin dijadikan Text ALAY disini.</TEXTAREA></TH>        
                    <TD>&nbsp;&nbsp;</TD>
                    <TH><TEXTAREA name="abg" cols="45" rows="10"></TEXTAREA></TH>
                </TR>
                <TR>
                    <TD><INPUT type="checkbox" name="pilihan"> HuRUf bEsAr keCil
                    </TD><TD>&nbsp;&nbsp;</TD>
                    <TH>&nbsp;&nbsp;</TH>
                </TR>
                        
                <TR>
                    <TD><INPUT type="checkbox" name="pilihan"> P4k3 4n9k4 D0n9
                    </TD><TD>&nbsp;&nbsp;</TD>
                    <TH>&nbsp;&nbsp;</TH>
                </TR>
                
                <TR>
                    <TD><INPUT type="checkbox" name="pilihan"> Disngkt-sngkt biar pndk
                    </TD><TD>&nbsp;&nbsp;</TD>
                    <TH>&nbsp;&nbsp;</TH>
                </TR>
                        
                <TR>
                    <TD><INPUT type="button" onclick="HumanToABG(this.form)" value="Go ALAY Go!"></TD>
                    <TD>&nbsp;&nbsp;</TD>
                    <TD>&nbsp;&nbsp;</TD>
                </TR>
            </TBODY>
        </TABLE>
    </FORM>
    <BR>
    </BODY>
</HTML>

Akhir kata, semoga bermanfaat buat TS. Tapi kalo gak bermanfaat buat situ ya sabodo amat ah seneng
Find all posts by this user
Quote this message in a reply
 Reputed by :  fuxnbums(+1) , tabun(+1)
03-29-2012, 10:43 AM
Post: #2
fuxnbums Offline
Orang Ganteng Stok Pertama
*****
DeMT Team
Posts: 732
Joined: Jun 2011
Reputation: 33
RE: [Share] Kriptografi iseng
paling sulit "Alay Generator"

wiih buset ngakak
Visit this user's website Find all posts by this user
Quote this message in a reply
03-29-2012, 12:35 PM
Post: #3
noe Away
./Devilz Officer
Posts: 223
Joined: May 2011
Reputation: 9
RE: [Share] Kriptografi iseng
keren om'zbingung ketawa
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2012, 12:33 AM
Post: #4
nggodress Offline
tukang mulung IDS twitter
Posts: 245
Joined: Feb 2012
Reputation: 19
RE: [Share] Kriptografi iseng
tetep aja bingung prustasi
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2012, 10:19 AM
Post: #5
Core-X Offline
Devilz e-Magazine Team (DeMT)
*****
DeMT Team
Posts: 320
Joined: Dec 2011
Reputation: 13
RE: [Share] Kriptografi iseng
bookmark dulu om... peace
"Salah satu kriptografi klasik adalah Vignere chiper.
Kriptografi kayak gini menggunakan kunci untuk mencampur adukkan teks aslinya sehingga hasil outputnya jadi berantakan."
jadi dibuat kyk smacam anagram gitu yah... belajar
Find all posts by this user
Quote this message in a reply
03-30-2012, 02:28 PM
Post: #6
candragati Offline
./Devilz Officer
Posts: 221
Joined: Feb 2012
Reputation: 25
RE: [Share] Kriptografi iseng
(03-30-2012 10:19 AM)Core-X Wrote:  bookmark dulu om... peace
"Salah satu kriptografi klasik adalah Vignere chiper.
Kriptografi kayak gini menggunakan kunci untuk mencampur adukkan teks aslinya sehingga hasil outputnya jadi berantakan."
jadi dibuat kyk smacam anagram gitu yah... belajar
ngakak ngakak


pasrah


jangan tanya guwee.... mewek sama gak ngertinya mewek
Find all posts by this user
Quote this message in a reply
02-09-2013, 01:21 AM
Post: #7
ghosthands Offline
./Devilz Officer
Posts: 123
Joined: Nov 2012
Reputation: 2
RE: [Share] Kriptografi iseng
aduh alay generatornya bikin sakit mata mewek
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Thumbs Up [SHARE] 3 Ebook Dari W3Schools ! anyo_ateng 11 423 04-09-2013 10:55 AM
Last Post: orochimadit
  [share script] Php Dos El-Farhatz 36 4,490 01-22-2013 05:47 PM
Last Post: brianfahmi
Information [Tutor] Belajar HTML + iseng Copas template beg3nk newb1e 27 1,704 01-07-2013 04:22 PM
Last Post: ino_ot
  [share] iseng2 background HTML+CSS Keonx 14 1,521 07-11-2012 05:00 AM
Last Post: arietux
  [iseng] gambar android dengan HTML+CSS Keonx 6 704 01-31-2012 12:02 PM
Last Post: Keonx

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-23-2013, 07:39 AM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE