Пример #1
0
        } //End method

        //Create key using existing salt. This is used on decryption.
        //For encryption, call CreateKey.
        //Returns the key as a byte array.
        private byte[] ProcessKeyWithSalt(string passphrase, byte[] salt)
        {
            byte[]  hash;
            FortKey key = new FortKey(passphrase);

            hash = key.GetNew(salt);

            return(hash);
        } // End method
Пример #2
0
        } //End method

        //Implements IEncryptionMachine.CreateKey
        //Main user interface for the FortMachine library.
        //Returns new instance of FortKey
        public FortKey CreateKey(string passphrase)
        {
            FortKey key = new FortKey(passphrase);

            return(key);
        } //End method