Hide bits in random numbers and extract it
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I generate random binary digits and then hide some of defined binaries it random binaries, and then extract it?
댓글 수: 3
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?
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!