public byte[] EncryptWithSolution(byte[] buffer) { if (solution == null) { throw new NullReferenceException(); } return(encryptionAlgorithm.Encrypt(buffer, hashAlgorithm.ComputeHash(solution))); }