KeePassLib.Keys.KcpPassword.ValidatePassword C# (CSharp) Method

ValidatePassword() private static method

private static ValidatePassword ( byte pb ) : bool
pb byte
return bool
        private static bool ValidatePassword(byte[] pb)
        {
            try
            {
                string str = StrUtil.Utf8.GetString(pb);
                return str.IsNormalized(NormalizationForm.FormC);
            }
            catch(Exception) { Debug.Assert(false); }

            return false;
        }