Skip to main content
Version: 3.28.0

fromBytes

The fromBytes() function is used to create an in-memory secret from an array buffer.

Note: This API should be avoided when possible, by instead using SecretStore.prototype.get to obtain secure secrets.

Syntax

fromBytes(new Uint8Array([1, 2, 3]))

Parameters

None.

Return value

Returns a SecretStoreEntry.