MATLAB Answers

My goal here is to decode an encrypted message using perfect-k-shuffles, the encryption key is given

1 ビュー (過去 30 日間)
Kevin Junior
Kevin Junior 2013 年 10 月 19 日
コメント済み: Walter Roberson 2013 年 10 月 19 日
here is what I have so far, I dont know how I am supposed to decode the message
encodedString = 'aasfu aic talputte balde'; % Encrypted message
encryptionKey = [6,7];% stores the m-value used in
% perfectMShuffle() function and the number of shuffles performed.
N = 1000;
cl = zeros(N/2,1);
for n = 2:2:N
ordered = [1,n]';
encodedString = ordered;
encodedString = perfectMShuffle(encodedString,encryptionKey);
counter = 1;
while any(encodedString - ordered)
encodedString = perfectMShuffle(encodedString,encryptionKey);
counter = counter + 1;
cl(n/2) = counter;
here is my perfectMshuffle function
function outString = MekuluperfectMShuffle(inString,m)
n = length(inString);
X = n/m;
outString = reshape(reshape(inString,X,m)',n,1);

  4 件のコメント

表示 1 件の古いコメント
Kevin Junior
Kevin Junior 2013 年 10 月 19 日
I made some further progress compare to last time
Walter Roberson
Walter Roberson 2013 年 10 月 19 日
You do not need multiple active questions on the same topic. You should merge them into one question.

サインイン to comment.

回答 (0 件)

サインイン してこの質問に回答します。

Translated by