Can I use my random number for stream ciphers?

Asked 2 years ago, Updated 2 years ago, 41 views

Keep x,y secret as any substitution.Let a be the binary array.
I'll take care of this.

Is it difficult to guess the next output of output a generated in this way?
Also, can I use this random number for stream ciphers?

https://gist.github.com/anang0g0/d6be8c3a21be68f6895f10d06ae48938

algorithm

2022-09-30 10:53

1 Answers

If you think about random numbers and ciphers, you can usually only do things with holes, so you'd better use the existing ones.

If you want to study, why don't you read the introduction to cryptography (ISBN 4797382228) first?

Let me show you one specific flaw.

If a==a[Z], a^a[Z] is 0.The subsequent sequence is zero.The same goes for ^a==a[Z].

This is not an issue that occurs with a specific initial value.

I tried with the appropriate parameters, but there was a big bias in the number of 0/1 values generated.

Also, if there is an equivalent, short-period replacement at the same position of xy during initial value or execution, the pattern will also occur at the corresponding position of the generated random number.If there is a limit to the initial value, it must be stated, and proof that this does not happen during execution is required even if there is no problem with the initial value, but it is not mentioned at all.

It is also the inventor's job to reveal the mathematical properties of random numbers and to show that they meet the statistical properties required.


2022-09-30 10:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.