Home General Computer Multimedia Business Lounge

Post Reply 
Help encrypt
08-01-2010, 02:30 PM
Post: #1
Help encrypt
Ada yang tau Psudo des decrypt dan Caesar Decrypt online ?
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2010, 03:06 PM
Post: #2
RE: Help encrypt
Apa tuh,... kak,? bisa di tambahin dikit nggak kak penjelasan nya...... :-)
Find all posts by this user
Quote this message in a reply
08-01-2010, 04:56 PM
Post: #3
RE: Help encrypt
mungkin ini biosa membantu
Code:
<?php

function cltn($char){
$char = strtoupper($char);
$ord = ord($char);
return ($ord > 64 && $ord < 91) ? ($ord - 64) : false;
}

function encrypt_cipher($str, $plus){
if( is_numeric($plus) && $plus <= 26 && is_string($str) ) {
$al = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
$nstr = '';
foreach( str_split($str) as $i => $v ) {
if( cltn($v) ) {
$ltn = cltn($v) - 1;
if( ( $ltn + $plus ) > 25 ) {
$nstr .= $al[( $ltn + $plus ) - 25];
}else{
$nstr .= $al[$ltn+$plus];
}
}else{
$nstr .= $v;
}
}
return $nstr;
}else{
return false;
}
}

function decrypt_cipher($str, $plus){
if( is_numeric($plus) && $plus <= 26 && is_string($str) ) {
$al = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
$nstr = '';
foreach( str_split($str) as $i => $v ) {
if( cltn($v) ) {
$ltn = cltn($v) - 1;
if( ( $ltn - $plus ) <= 0 ) {
$nstr .= $al[( $ltn - $plus ) + 25];
}else{
$nstr .= $al[$ltn-$plus];
}
}else{
$nstr .= $v;
}
}
return $nstr;
}else{
return false;
}
}

echo encrypt_cipher('saya', 26) . "<br />";
echo decrypt_cipher('tbzb', 26);

?>
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2010, 05:21 PM
Post: #4
RE: Help encrypt
@bindas
ia kk..
saya mau decrypt text yang diencrypt menggunakan 2 hash itu..


@wenk
itu gmn ya ?
save pake .php gt ?
kok ga jalan ya wkwk..
apa musti di hosting ?

kok sama aj ga kluar apa2 ya.. wkwk..
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2010, 08:31 PM
Post: #5
RE: Help encrypt
(08-01-2010 05:21 PM)suicidal Wrote:  @bindas
ia kk..
saya mau decrypt text yang diencrypt menggunakan 2 hash itu..


@wenk
itu gmn ya ?
save pake .php gt ?
kok ga jalan ya wkwk..
apa musti di hosting ?

kok sama aj ga kluar apa2 ya.. wkwk..


php brok...

localhost install xamp aja brok.

ato appserv
Find all posts by this user
Quote this message in a reply
08-21-2010, 02:49 PM
Post: #6
RE: Help encrypt
localhost install xamp aja brok.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-24-2010, 05:04 PM
Post: #7
RE: Help encrypt
itu DES (data enkription satandar ) om yg di source PHPnya....
Find all posts by this user
Quote this message in a reply
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

Users Browsing
1 Guest(s)


Stop SOPA/PIPA | Discuss !