Exemplo n.º 1
0
        /// <summary>
        /// Decrypts the fragments values of this instance into a clear text message string using the passphrase.
        /// </summary>
        /// <param name="passphrase">Decryption key</param>
        /// <returns>Decrypted message string</returns>
        public string GetDecryptedMessage(System.Security.SecureString passphrase)
        {
            if (!this.Complete) return string.Empty;

            Cryptkeeper mycrypt = new Cryptkeeper(passphrase);
            string cleartext = mycrypt.Decrypt(this.GetBytes());
            return cleartext;
        }