simple encryption/decryption

Discussion in 'Perl Misc' started by stig, Jan 18, 2005.

  1. stig

    stig 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
    stig, Jan 18, 2005
    #1
    1. Advertising

  2. stig wrote:
    > 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.

    --
    Josef Möllers (Pinguinpfleger bei FSC)
    If failure had no penalty success would not be a prize
    -- T. Pratchett
    Josef Moellers, Jan 18, 2005
    #2
    1. Advertising

  3. stig

    Ken Guest

    stig wrote:
    > 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
    Ken, Jan 18, 2005
    #3
  4. stig

    Guest

    In: <csj6h7$nc7$>, stig <> wrote:
    >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
    --
    http://www.geniegate.com Custom web programming
    (rot13) User Management Solutions
    , Feb 18, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Srinivasa Reddy K Ganji

    database connection string encryption and decryption

    Srinivasa Reddy K Ganji, Jul 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    696
    Gary Varga
    Jul 18, 2003
  2. Replies:
    2
    Views:
    1,607
    Sushant Bhatia
    May 3, 2005
  3. Rogue Chameleon

    Encryption & Decryption

    Rogue Chameleon, Sep 23, 2004, in forum: Java
    Replies:
    6
    Views:
    575
  4. Replies:
    14
    Views:
    10,431
    Mark Space
    Mar 24, 2009
  5. Bruce
    Replies:
    3
    Views:
    271
    Anthony Jones
    Dec 13, 2007
Loading...

Share This Page