11.2.1 Compute メソッド

現在選択されているアルゴリスムを使って、バイト・シーケンスのハッシュを計算します。
入力引数

名前

タイプ

必須

説明

Input

XPRIM_Binary

はい

ハッシュ計算するバイナリ・データ

出力引数

名前

タイプ

必須

説明

Result

XPRIM_Binary

はい

ハッシュ (バイト)

戻り値
なし

PBKDF2 アルゴリスムを使ってパスワードをハッシュ (5000 反復)
Define_Com Class(#PRIM_DC.UnicodeString) Name(#PasswordString)
Define_Com Class(#XPRIM_Binary) Name(#PasswordBytes)
Define_Com Class(#XPRIM_Binary) Name(#HashBytes)
Define_Com Class(#XPRIM_Crypto_Hash) Name(#HashGenerator)
...