Skip to content

Documentation


Documentation / @blazetrails/activesupport / SecurityUtils

Class: SecurityUtils ​

Defined in: packages/activesupport/lib/security-utils.ts:6

Constructors ​

Constructor ​

new SecurityUtils(): SecurityUtils

Returns ​

SecurityUtils

Properties ​

[classModule] ​

readonly static [classModule]: true = true

Defined in: packages/activesupport/lib/security-utils.ts:7


fixedLengthSecureCompare ​

static fixedLengthSecureCompare: (a, b) => boolean = SecurityUtils.prototype.fixedLengthSecureCompare

Defined in: packages/activesupport/lib/security-utils.ts:24

Parameters ​

ParameterType
astring | Bytes
bstring | Bytes

Returns ​

boolean


secureCompare ​

static secureCompare: (a, b) => boolean = SecurityUtils.prototype.secureCompare

Defined in: packages/activesupport/lib/security-utils.ts:25

Parameters ​

ParameterType
astring
bstring

Returns ​

boolean

Methods ​

fixedLengthSecureCompare() ​

fixedLengthSecureCompare(a, b): boolean

Defined in: packages/activesupport/lib/security-utils.ts:9

Parameters ​

ParameterType
astring | Bytes
bstring | Bytes

Returns ​

boolean


secureCompare() ​

secureCompare(a, b): boolean

Defined in: packages/activesupport/lib/security-utils.ts:20

Parameters ​

ParameterType
astring
bstring

Returns ​

boolean