Skip to content
PKIjsPKIjsPKIjsv4.0.1

getCrypto

getCrypto(safety?): ICryptoEngine | null

Gets crypto subtle from the current “crypto engine”

boolean

ICryptoEngine | null

Reruns ICryptoEngine or null

getCrypto(safety): ICryptoEngine

Gets crypto subtle from the current “crypto engine”

true

ICryptoEngine

Reruns ICryptoEngine or throws en exception

Throws Error if subtle is empty