Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/security / / SecretStrengthOptions
Interface: SecretStrengthOptions
Defined in: packages/security/src/hardening/weak-secret.ts:18
Tunable thresholds for assessSecretStrength.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
maxIdenticalRun? | readonly | number | Reject when this many identical bytes appear consecutively. Default 8. | packages/security/src/hardening/weak-secret.ts:27 |
minBytes? | readonly | number | Minimum byte length. Default 32. | packages/security/src/hardening/weak-secret.ts:20 |
minShannonBitsPerByte? | readonly | number | Minimum Shannon entropy in bits per byte. Default 3. | packages/security/src/hardening/weak-secret.ts:22 |