Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/security / / assessSecretStrength

Function: assessSecretStrength()

ts
function assessSecretStrength(bytes, options?): SecretStrength;

Defined in: packages/security/src/hardening/weak-secret.ts:51

Assess the strength of a raw secret buffer. Pure: callers decide whether to throw or WARN on ok === false.

Parameters

ParameterType
bytesUint8Array
optionsSecretStrengthOptions

Returns

SecretStrength

Stable