Gossamer Forum
Home : General : Perl Programming :

crypt() or something simular!

Quote Reply
crypt() or something simular!
Is there funcion simular to crip, BUT that is reversable?

This because, i would like to have an function like this:

When sending a email i do not want this:

Code:
want to nsubscribe?
http://domain.com/cgi-bin/mail.cgi?email@domain.com

but

Code:
want to nsubscribe?
http://domain.com/cgi-bin/mail.cgi?GGJKHHG5765

But my mail.cgi must be able to read GGJKHHG5765 as mail@domain.com !!!


When a password is cryped is there any way to di-crypt it ?
Quote Reply
Re: crypt() or something simular! In reply to
The only way you would be able to do it is to write your own crypting/de-crypting routine.

The unix Crypt() cannot be de-crypted.

--mark

------------------
You can reach my by ICQ at UID# 8602162

Quote Reply
Re: crypt() or something simular! In reply to
Mark,

Quote:
The unix Crypt() cannot be de-crypted.

Sure it can. Unix does it all the time! Wink
Quote Reply
Re: crypt() or something simular! In reply to
Care to show me an example?? Smile

Unix decrypts be encrypting the entered string (password) using the same salt as the stored password, then matching up the two crypted strings.

There is no function to translate:

"Xnafa893owq" back to "MyPassword"

Smile

--Mark
Quote Reply
Re: crypt() or something simular! In reply to
Mark,

How do i do this....

Code:
The only way you would be able to do it is to write your own crypting/de-crypting
routine.