Skip to content

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

PropertyModifierTypeDescriptionDefined in
maxIdenticalRun?readonlynumberReject when this many identical bytes appear consecutively. Default 8.packages/security/src/hardening/weak-secret.ts:27
minBytes?readonlynumberMinimum byte length. Default 32.packages/security/src/hardening/weak-secret.ts:20
minShannonBitsPerByte?readonlynumberMinimum Shannon entropy in bits per byte. Default 3.packages/security/src/hardening/weak-secret.ts:22