Effacer les filtres
Effacer les filtres

How can I turn initial value of chaos system to key for encryption algorithm?

2 vues (au cours des 30 derniers jours)
sa za
sa za le 14 Oct 2013
Commenté : Walter Roberson le 15 Oct 2013
I used chaos system for encryption with `(1.00001,3.26,22)` as initial value. I want to use these numbers as key for encryption algorithm.
- Should I turn my number to `(0100001 0326000 2200000)` (normalizing) and turn them to binary? or turn them separately to binary`(1.00001)(3.26)(22)`?
- Is there any function in matlab to convert double to binary like (str2bin)?
Actually i want to Specify how many bits are required for the key?
  3 commentaires
sa za
sa za le 15 Oct 2013
dec2bin is not working for double (dec2bin(2.3)=10)
ES
ES le 15 Oct 2013
Modifié(e) : ES le 15 Oct 2013
input of dec2bin must be a non-negative integer. if float to binary conversion is your problem, then write a logic to do the conversion.
However, for chaos generated encryption, logically should support ral x and not just binary x.
that is Xn+1=P*Xn*(1-Xn-1) and all X belong to the Real World.
All of Bifurcation Coefficient, Chaos Input, Chaos Output belong to the Real World if I am right.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 15 Oct 2013
Your posted question involves strings, not binary values.
There are multiple competing "standards" on converting double to binary. You need to define the representation you are looking for.
  1 commentaire
Walter Roberson
Walter Roberson le 15 Oct 2013
dec2bin(round(S * 10000))
but what do you want to do if the number is negative?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by