Beispiel #1
0
        /// <summary>
        /// Encrypts message using password and stores the result as the cypher
        /// </summary>
        /// <param name="message"></param>
        /// <param name="password"></param>
        public void Encrypt(byte[] message, byte[] password)
        {
            var validated = PreProcess(message, ValidityCheck);

            Cipher = Encryptor.Encrypt(validated, DeriveKey(password), InitializationVector);
        }