Agen Terpercaya  
 
 
Pasang iklan, hanya lewat Contact Us.
Waspada penipuan iklan. Klik di sini untuk melihat daftar penipu.

SHARE Mencegah Exploit Url

RayMantic

J̷a̷d̷i̷ ̷D̷o̷n̷a̷t̷u̷r̷ ̷P̷M̷ ̷A̷d̷m̷i̷n̷
Staff member
Moderator
Daftar
4 Oct 1988
Post
Like diterima
9.264
Bimabet
ada 2 cara pembuatan key
pertama basic dan sering di gunakan :
Code:
<?php
    function encrypt($s) {
        $cryptKey    ='d8578edf8458ce06fbc5bb76a58c5ca4';
        $qEncoded    =base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5( $cryptKey), $s, MCRYPT_MODE_CBC, md5(md5($cryptKey))));
        return($qEncoded);
    }
    function decrypt($s) {
        $cryptKey    ='d8578edf8458ce06fbc5bb76a58c5ca4';
        $qDecoded    =rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($cryptKey), base64_decode($s), MCRYPT_MODE_CBC, md5(md5($cryptKey))), "\0");
        return($qDecoded);
    }
?>

kedua :

Code:
<?php
  require_once("Chiper.php"); // panggil filenya
  $cipher = new Cipher(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);

  $kunci = "isi kunci"; // kunci
  $modul = "isi modul"; // isi parameter modul
  $aksi = "isi aksi"; // isi parameter aksi
  $id = "isi no ID"; // isi parameter id

  $en_modul = $cipher->encrypt($modul, $kunci); // enkripsi
  $en_aksi = $cipher->encrypt($aksi, $kunci); // enkripsi
  $en_id = $cipher->encrypt($id, $kunci); // enkripsi

  echo "<a href='proses.php?modul=$en_modul&aksi=$en_aksi&id=$en_id'>EDIT</a>";
?>

bisa juga encrypsi tanpa kunci dengan :
Code:
$en_modul = $cipher->encrypt($modul);

untuk dalam get sama
Code:
<?php
  require_once("Chiper.php"); // panggil file nya
  $cipher = new Cipher(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);
  $kunci = "isi kunci";

  $getmodul = $_GET['isi modul']; // dapatkan nilai parameter modul
  $getaksi = $_GET['isi aksi']; // dapatkan nilai parameter aksi
  $getid = $_GET['isi No id']; // dapatkan nilai parameter id

  $de_modul = $cipher->decrypt($getmodul, $kunci); // dekripsi
  $de_aksi = $cipher->decrypt($getaksi, $kunci); // dekripsi
  $de_id = $cipher->decrypt($getid, $kunci); // dekripsi

  echo "Modul : $de_modul <br>";
  echo "AKsi : $de_aksi <br>";
  echo "Id : $de_id ";
?>

gampang kan
semoga bermanfaat
 
Bimabet
mantapp, terimakasih ilmunya master
 
Gaple Online Indonesia
Pasang iklan hanya lewat CONTACT US
Back
Top
We are now part of LS Media Ltd