예제 #1
0
        public byte[] GetIndividualKeyInBytes(byte[] keyPassword, byte[] individualSalt)
        {
            var password = Convert.ToBase64String(keyPassword);

            return(RijndaelAlgorithm.GetKeyInBytes(password, individualSalt, _hashAlgorithm, 10, _keySize));
        }
예제 #2
0
 public byte[] GetKeyInBytes(string password)
 {
     return(RijndaelAlgorithm.GetKeyInBytes(password, SaltValue, _hashAlgorithm, PasswordIterations, _keySize));
 }