Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ABBYY FlexiCapture のユーザー管理 API の ChangePassword メソッドは、ユーザーのパスワードをリセットします。ソルト付き SHA-256 パスワードハッシュを計算するコード例も含まれています。
bool ChangePassword( string userName, string oldPassword, string newPassword );
public static string GetPasswordHashWithSalt( string login, string password ) { string salt = GetPasswordSha256Hash(login.ToUpper()); return GetPasswordSha256Hash(password + salt); } private static string GetPasswordSha256Hash( string password ) { Encoding enc = Encoding.GetEncoding("UTF-16"); byte[] buffer = enc.GetBytes(password); var cryptoTransformSHA256 = new SHA256CryptoServiceProvider(); string hash = BitConverter.ToString(cryptoTransformSHA256.ComputeHash(buffer)).Replace("-", ""); return hash; }
型
説明
bool
このページは役に立ちましたか?