Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Encryption using perl core functions only

by ad1mt (Initiate)
on May 08, 2012 at 17:21 UTC ( [id://969509]=note: print w/replies, xml ) Need Help??


in reply to Re: Encryption using perl core functions only
in thread Encryption using perl core functions only

Hi Porculus - apologies for replying to such an old thread...

A few years I invented a home-grown encryption for a application I wrote, and used a scheme like you describe. Following your comment, I am concerned about the security of my encryption (which is still in use).

I am XOR'ing the plaintext against a shared secret "random" key, where the key is approx 50 thousand bytes (compared to a typical plaintext length of 10-500 bytes). The XOR starting position within the key is "random" for each encryption/call (and is then embedded within the encrypted data so the decryption algorithm can find it). The encryption program code and plaintexts are guaranteed to be private, and only the encrypted data is ever made public.

Can you briefly explain to me how an attacker would break this?

Many thanks for your help.

Replies are listed 'Best First'.
Re^3: Encryption using perl core functions only
by Anonymous Monk on May 08, 2012 at 18:10 UTC

    Can you briefly explain to me how an attacker would break this?

    Pretty much the same way you would break rot 13 or any other substitution cipher, easily

Re^3: Encryption using perl core functions only
by Anonymous Monk on May 09, 2012 at 14:44 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://969509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-28 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found