function A = HillEncodingMatrixGenerator(n)
% A = HillEncodingMatrixGenerator(n)
done = 0;
while done == 0;
    A = floor(26*rand(n,n));
    detA = mod(det(A),26);
    if gcd(detA, 26) == 1; done = 1; end
end
