Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I'm one of those who always look for new improved things.

So I was rather interested by your post.

Anyway I'd like to point out some weakness/problem which could be interesting to enhance/solve :

1) The key space (the seed is the key) is really too small in my humble opinion (32 bits !!!!).
why not use your passphrase to create several seed which could be used to introduce more entropy.
(produce N seeds and use N pseudo random generator?)

2) I think that you supposition that each pseudo random generator is different is risky.
very few good generators exists and in fact it seems that a bad one is the most used (linear congruential generator)
In fact it's probable that different system will produce the same values with the same seed.
And even if I don't know if the Perl rand function will give the same values on different system given the same seed,
It's higly possible that if someone implement this algo in another language the rand function will be a linear congruential generator.

3) BTW if the rand function is a Linear congruential generator the period may be ridiculously short (16838 for ANSI one) so long text encrypting would lead to easy cryptanalisis.
Moreover whatever the period of your generator you shouldn't use it to encrypt an unlimited plain text (or a very long message).

4) you're algo seems weak against choosen (or even known) text attack

But as I said before , I like your try and hope you'll go on trying to enhance this.

As long as you remember that whatever your skill without a long review by (real) cryptanalists, it IS weak security.

UPDATE : A good reading could be the article "Randomness - The Perl Journal, Winter 1996"

"Trying to be a SMART lamer" (thanx to Merlyn ;-)

In reply to Re: Wombat's Bit Scrambler by arhuman
in thread Wombat's Bit Scrambler by wombat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found