Hide bits in random numbers and extract it

1 回表示 (過去 30 日間)
Abdul Jalil Shaikh
Abdul Jalil Shaikh 2015 年 11 月 9 日
回答済み: Walter Roberson 2015 年 11 月 11 日
How can I generate random binary digits and then hide some of defined binaries it random binaries, and then extract it?
  3 件のコメント
Walter Roberson
Walter Roberson 2015 年 11 月 10 日
First you tame a hippopotamus, for the practice in "doing difficult things" before you get to "generate random binary digits". Unless you have a Lava Lamp on hand?
Abdul Jalil Shaikh
Abdul Jalil Shaikh 2015 年 11 月 10 日
I have generated random binaries by command. randint(1,100, [0 1]) now i have message i.e. msg='11001100'; i want to hide and then extract it from random digits. what will be the procedure?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 11 日
randomdigits = randint(1,100, [0 1]);
msg='11001100';
outputdigits = randomdigits;
outputdigits(1:length(msg)) = msg - '0';
Now outputdigits has the message hidden in it.

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by