Current location: Hot Scripts Forums » Programming Languages » PHP » encode and decode


encode and decode

Reply
  #1 (permalink)  
Old 05-29-06, 01:02 PM
aprogrammer aprogrammer is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
encode and decode

can anyone point me to a function to encode and decode for a string?
Reply With Quote
  #2 (permalink)  
Old 05-29-06, 01:16 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Reply With Quote
  #3 (permalink)  
Old 06-01-06, 02:54 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
or you could use the mcrypt functions:
http://be.php.net/manual/en/ref.mcrypt.php

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #4 (permalink)  
Old 06-01-06, 06:26 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
indeed, mcrypt functions are much safer since you get to give your own key of encryption.
base64 is good for normal not secret use since it can be simply decoded with base64_decode()
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to encode and decode url musmanm80 Perl 3 09-04-05 01:41 AM


All times are GMT -5. The time now is 07:16 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.