in our project we have pseudo random index generator for generating set of keys with which we select some of the keys and encrypt the image.sir ,please can you provide the basic idea for us how to write the code for it?

 채택된 답변

Jos (10584)
Jos (10584) 2014년 1월 23일

0 개 추천

You provide little information, but this might help:
AllKeys = [10 13 22 -9 0 12345]
N = 3 ; % randomly select N of these keys
IDX = randperm(numel(AllKeys), N)
KeysSelected = AllKeys(IDX)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

질문:

2014년 1월 23일

답변:

2014년 1월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by