Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #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

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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2023-09-26 22:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found