System.Hash.THashSHA2.GetHashString
Delphi
class function GetHashString(const AString: string; AHashVersion: TSHA2Version = TSHA2Version.SHA256): string; static;
C++
static System::UnicodeString __fastcall GetHashString(const System::UnicodeString AString, TSHA2Version AHashVersion = (TSHA2Version)(0x1));
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THashSHA2 |
説明
引数として渡された文字列からハッシュ ダイジェストを作成し、作成したダイジェストの値を 16 進文字列として返します。
任意指定のパラメータ AHashVersion
を使用すると、このハッシュに SHA2 のさまざまな種類を指定できます。デフォルト値は TSHA2Version.SHA256
です。