in reply to how to encrypt a string...
cheers, kiatmy $Sentence = "Answer to puzzle\n"; print "$Sentence\n"; my $Hex = unpack("H*",$Sentence); print "$Hex\n"; # prints '416e7377657220746f2070757a7a6c650a' my $Sentence2 = pack("H*",$Hex); print "$Sentence2\n"; # prints 'Answer to puzzle'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how to encrypt a string...
by tachyon (Chancellor) on Dec 22, 2001 at 19:51 UTC |