Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

84 users online



encode decode help

encode decode help

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
nertman

nertman

lurker
Status: Offline!

encode decode help

i need something i can encode and decode with.. i was using base64 but they have = chars and stuff i want something like the md5 hash with numbers and letters only anyway if anyone knows a command let me know

VantageX4

VantageX4

PHP Developer
Status: Offline!
PHP:

<?php

$str 
md5($str);
echo 
$str;

?>

That returns the md5 of $str.

Last edited by VantageX4, April 3rd, 2005 01:48 AM (Edited 1 times)

June

June

Neversidian
Status: Offline!

md5 algorithm has been cracked.

Also once something has been hashed, you cannot reverse it. So you have to compair.

So if you were to hash a password. Store it in the database. When someone logs in you have to hash their password then see if they match.

___________________

There probably isn't any meaning in life. Perhaps you can find something interesting to do while you are alive. Like how you found that flower. Like how i found you.

nertman

nertman

lurker
Status: Offline!

i'm not asking for something to hash and i know how to echo or print the outcome of the hash i'm looking for a function where i can encode and decode and it will only use basic number and letter characters sorry if anyone misunderstood my post

what i want to encode and decode isn't vary important information like a cc number or anything so the encryption doesn't have to be something all great and that's why i don't want to hash the stuff cause i can't unhash it i want to be able to decode the text.. pretty much all i'm looking for is some function names and i can go from there or a way to use the base64 function and only have it encode with base characters and numbers

Last edited by nertman, April 3rd, 2005 03:07 AM (Edited 1 times)

Phil

Phil

with Mr. Jones
Status: Offline!

sigh, md5 is perfectly fine for the majority of web applications. It has not been 'cracked', it is simply possible to brute force it. The typical user/hacker really doesnt have this avalable to him

___________________

http://www.philbrodeur.com - Expert PHP Development and Tutorials

nertman

nertman

lurker
Status: Offline!

all you have to do is google for a md5 cracker i used one to retrive my old password for my fnews account, but i'm not looking for a hasher cause i can't unhash the data i just like how the hashed data with the md5 is all the same number of char's and it only uses basic numbers and characters and not no = or $ sign crap.. but if anything i guess i might stick with base64 encoding and decoding since it seems to be the only thing avalible at the moment :[

June

June

Neversidian
Status: Offline!

http://www.theregister.co.uk/2005/02/17/sha1_hashing_broken/

Altho i guess your right, it hasn;t been cracked, just every possible value has been worked out and shoved in a database.

___________________

There probably isn't any meaning in life. Perhaps you can find something interesting to do while you are alive. Like how you found that flower. Like how i found you.

Dexxaboy

Dexxaboy

Neverside Newbie
Status: Offline!

Well, there is

base64_decode();
and
base64_encode();

___________________

| Lunar Poll | Dexxaboys Site |

VantageX4

VantageX4

PHP Developer
Status: Offline!

Just use md5() for Christ's sake.

goofygarber

goofygarber

Pants are overrated
Status: Offline!

for any and all practical usage, md5 is fine... unless you are the goverment.
are you the goverment?
seriously.

___________________

http://www.goofygarber.net

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0085 seconds.