問題タブ [argon2-ffi]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
hash - Argon2id のハッシュが遅い (分散が大きい)
Isopoh.Cryptography.Argon2 NuGet パッケージ (ここからの最新バージョン 1.1.2: https://github.com/mheyman/Isopoh.Cryptography.Argon2 ) を通じて提供される C# Argon2 実装を使用しています。Argon2 ハッシュの生成と検証は、以下の構成が低コストであると理解していますが、高速な場合もあれば非常に遅い場合もあります (数秒)。
私の Argon2 構成は次のとおりです。
これにより、次の構成ヘッダーを示す Argon2 ハッシュが生成されます。
パフォーマンス プロファイラーを作成したところ、繰り返しテストを行っても、約 10 回から 12 回の反復の後、各反復で実装が (ほとんど) 遅くなることがわかりました。遅さは 2 桁以上 (10 ミリ秒から数秒) で、ガベージ コレクションやメモリ リークの問題があると思われます。