Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-21-2013, 06:15 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › PHP v
« Previous 1 ... 15 16 17 18 19 ... 31 Next »

[Solved] Word Encrypt & Decrpyt

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
Solved Word Encrypt & Decrpyt
05-02-2012, 10:36 PM
Post: #1
bakul666 Offline
./Devilz 1st Cadet
Posts: 10
Joined: Apr 2012
Reputation: 0
Word Encrypt & Decrpyt
Gini gan .. q mau buat encrypt & decrypt untuk kata kata ..


Misal nanti pas di form itu dimasukan saya

nah nanti yg output nya itu muncul misal #$^#

# = s
$ = a
^ = y

Itu gimana ya gan ? help me gan .. gk nemu nemu.. hhehehe
Find all posts by this user
Quote this message in a reply
05-02-2012, 10:47 PM
Post: #2
nggodress Offline
tukang mulung IDS twitter
Posts: 245
Joined: Feb 2012
Reputation: 19
RE: Word Encrypt & Decrpyt
(05-02-2012 10:36 PM)bakul666 Wrote:  Gini gan .. q mau buat encrypt & decrypt untuk kata kata ..


Misal nanti pas di form itu dimasukan saya

nah nanti yg output nya itu muncul misal #$^#

# = s
$ = a
^ = y

Itu gimana ya gan ? help me gan .. gk nemu nemu.. hhehehe

kagak paham sama sekali prustasi
Visit this user's website Find all posts by this user
Quote this message in a reply
05-02-2012, 11:22 PM
Post: #3
dzawa Offline
./Devilz Commander
Posts: 281
Joined: Feb 2012
Reputation: 5
RE: Word Encrypt & Decrpyt
ow jadi kaya cryptography ya ? Ane juga lg butuh
Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2012, 02:42 AM (This post was last modified: 05-03-2012 02:49 AM by suicidal.)
Post: #4
suicidal Offline
./Devilz Commander
Posts: 399
Joined: Jan 2010
Reputation: 15
RE: Word Encrypt & Decrpyt
Logikanya gini :
1. Arraykan semua yang ingin diganti
2. Arraykan semua huruf pengganti
3. Lakukan penggantian dengan str_replace
4. Selesai

Mungkin ini bisa membantu, list hurufnya ditambahkan di arraynya saja.
Ingat, urutan yang diganti harus sama.
PHP Code:
function ganti($value){
    
$cari    = array("a","y");
    
$ubah    = array("#","$");
    
$ganti    = str_replace($cari,$ubah,$value);
    return 
$ganti;
}

echo 
ganti("saya"); 

Nih ada referensi dari thread sebelah yang dibuat oleh kapten.
Check this out : http://devilzc0de.org/forum/thread-5392.html
Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2012, 08:43 AM
Post: #5
dzawa Offline
./Devilz Commander
Posts: 281
Joined: Feb 2012
Reputation: 5
RE: Word Encrypt & Decrpyt
gan, ini input nya gmana ya ?
Code:
<php?
function yarpChipper($str){
$tblHex = "0123456789abcdef";
$tblBin = "0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111";
for($a=0;$a<strlen($str);$a++){
$dechex .= dechex(ord(substr($str, $a,1)));
}
for($b=0;$b<strlen($dechex);$b++)
{
$hex = substr($dechex,$b,1);
$hexIdx = strpos($tblHex,$hex);
$output = substr($tblBin,$
hexIdx*5,4);
$bin = strrev($output);
$binIdx = strpos($tblBin,$bin);
$hasil = substr($tblHex,$binIdx/5,1);
}
for($c=0;$c<strlen($hasil)/2;$c++)
{
$hexRev = substr($hasil,$c*2,2);
$code = chr(hexdec($hexRev));
return $code;
}
}
echo $hasil;
?>
Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2012, 09:32 AM
Post: #6
suicidal Offline
./Devilz Commander
Posts: 399
Joined: Jan 2010
Reputation: 15
RE: Word Encrypt & Decrpyt
PHP Code:
echo yarpChipper("saya orang ganteng se-dc"); 
Visit this user's website 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
Information Cara encrypt link ? satpam 4 192 11-15-2012 10:39 PM
Last Post: satpam
  [Ask] cara convert word to swf region 3 164 10-24-2012 04:24 PM
Last Post: Cruz3N
  [Ask] print php to ms word ketem 9 696 03-05-2012 11:12 PM
Last Post: Joris
  [Ask] Encrypt php - Undetected A25414N 3 404 02-28-2012 03:05 PM
Last Post: A25414N

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-21-2013, 06:15 PM 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