simple encryption/decryption

S

stig

hi.
which perl-module(s) can be used to implement very simple
encryption/decryption of arbitrary length strings?
it does not need to very secure but must be able to encrypt and decrypt
(not only one way).

for various reasons Crypt::Simple will not be a possible choice, are
there any other modules that you can recommend?

many thanks
stig
 
J

Josef Moellers

stig said:
hi.
which perl-module(s) can be used to implement very simple
encryption/decryption of arbitrary length strings?
it does not need to very secure but must be able to encrypt and decrypt
(not only one way).

If you do not require it to be "very secure", you do not require it to
bescure at all, so either use strong encryption or use no encryption at all.
 
K

Ken

stig said:
hi.
which perl-module(s) can be used to implement very simple
encryption/decryption of arbitrary length strings?
it does not need to very secure but must be able to encrypt and decrypt
(not only one way).

for various reasons Crypt::Simple will not be a possible choice, are
there any other modules that you can recommend?

many thanks
stig

What about Crypt::Simple doesn't work for you?

Crypt::Blowfish is a good encryption algorythm to use.

If your strings are longer than 8 bytes you will need to use Crypt::CBC
along with the encryption module. You can also use Crypt::CBCeasy to
make things a little easier.


Ken
 
G

Guest

hi.
which perl-module(s) can be used to implement very simple
encryption/decryption of arbitrary length strings?
it does not need to very secure but must be able to encrypt and decrypt
(not only one way).

for various reasons Crypt::Simple will not be a possible choice, are
there any other modules that you can recommend?

many thanks
stig

y/A-Za-z/N-ZA-Mn-za-m/;

Works both ways, plus it's really simple! :)

You could also just XOR the data and back again.. a bit more "secure" than
above, but still fairly simple and easily broken. (Kid-sister scrambling unless
you've got a secure channel to transfer the XOR chunk back and forth, AND are
able to generate a new key each time, AND those keys are identical in length to
the original data) It'd probably work to keep grep from finding your string
though.

Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top