コード例 #1
0
        public static void ParseSalt(string salt, out byte[] saltBytes, out ulong N, out uint r, out uint p, out uint hashLengthBytes)
        {
            Exception error = SCryptAlgorithm.InternalTryParseSalt(salt, out saltBytes, out N, out r, out p, out hashLengthBytes);

            if (error != null)
            {
                throw error;
            }
        }
コード例 #2
0
        public static bool TryParseSalt(string salt, out byte[] saltBytes, out ulong N, out uint r, out uint p, out uint hashLengthBytes)
        {
            Exception error = SCryptAlgorithm.InternalTryParseSalt(salt, out saltBytes, out N, out r, out p, out hashLengthBytes);

            return(error == null);
        }