-
encode and decode
Hi everybody,
I am trying to know how to use the
encode and decode functions
and are they the best way to go for
to encrypt passwords.
Thank you much
-
hi,
to encrypt the password you can use encode and decode.
while inserting the record you encrypt the password along with some string like
insert into table values ENCODE($password,'898afod98')
while comparing DECODE with same string
like DECODE (Password,'898afod98')
good luck
-
Thank you so much for the reply
Can you tell me what are the string (898afod98) that
you included is used for and how should
I deal with it or is there any comments about it.
Thank you in advance.
-
hi Najjar,
Actually the string i given is a random string, it can have any value.
Encode uses a mechanism and converts the password using a string given by you.
The string entered by u must be critical and it should not be easy to keep in mind if someone happens to see ur source code.
that's all.
for that you can use md5 of any string and can use it as an key for encoding
-
Thank you much.
That's all I needed to know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|