サンプル
Configure bcryptjs PRNG via setRandomFallback when native crypto is unavailable and avoid silent degeneration to static salts or string cost crashes
sha256:ba1006652d1d549b0fa903945df23dbba37b405ccded650cb40820cf827a4b90
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Configure bcryptjs PRNG via setRandomFallback when native crypto is unavailable and avoid silent degeneration to static salts or string cost crashes HOW
- パッケージ
- bcryptjs 3.0.2
- 環境
- node
- 作成日
- 2026-08-16T06:23:38Z
コントラクト
- Throws when native crypto is unavailable without setRandomFallback
- Math.random as fallback silently degrades to constant dot salt ($2b$10$......................)
- Proper byte-array PRNG fallback produces unique 29-character salts and valid 60-character bcrypt hashes
- Unparsed string cost factors fail loudly instead of being coerced to integers
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9