No BSD License  

Highlights from
MATLAB Golf Contest Test Suite

from MATLAB Golf Contest Test Suite by Mike Thomas
Generates the test suites for the MATLAB Golf Contest.

createencryption
function holes = createencryption

holes = [];

a = 'message text';
b = 'math';
c = 'yelzmgx feqa';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'a';
b = 'a';
c = 'a';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'the cow jumped over the moon';
b = 'fairytale';
c = 'yhm ahw nzmxvb ogiw byc mzss';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'apply the code word to the length of the message and then encode using a simple transposition cipher for each letter in the plaintext as determined by the corresponding letter in the code word';
b = 'encryption';
c = 'ecrcw mps gbfv lhzr xb kft tsakgj mu bvr zgjqpzm nrq kftg sagbfv jlqbt n jgbits xeceqehawgmbp axipse sqi ttkv prvkcg qb xug natqbgikv yh lsgieozltw pl gjv rhzfrwcqebxgo yigvvp bv glr tmsx kbvq';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'transposition cipher is a simple rotation and wrap';
b = 'cipher';
c = 'vzpuwgqaxamfp rptygz pw c hpqgnm yskcbxvr cvs aicx';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'the objective in the game of golf is to reach the hole with the fewest strokes';
b = 'golf';
c = 'zvp upujihtak ts hsj ulrk zk uzql tx hz xslhn emk strs bohs zvp lshjyh xzfzpkg';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'i love matlab';
b = 'true';
c = 'b fsov qtkfeu';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'the mathworks is the shizzle';
b = 'xanadu';
c = 'qhr puqhjouep vs nee skcwzye';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'abcdefghijklmnopqrstuvwxyz';
b = 'kljh';
c = 'kmlkoqposutswyxwacbaegfeik';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'this should be enough';
b = 'done';
c = 'wvvw gusxzq es iqchkk';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'abcdefghijklmnopqrstuvwxyz';
b = 'b';
c = 'bcdefghijklmnopqrstuvwxyza';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'abcdefghijklmnopqrstuvwxyz';
b = 'aaaaaaaaaaaaabbbbbbbbbbbbb';
c = 'abcdefghijklmopqrstuvwxyza';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

a = 'i love matlab';
b = 'abcdefghijklmnopqrstuvwxyz';
c = 'i nrzj ticvln';

holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;

Contact us at files@mathworks.com