function bytesToText
bytesToText(byteBuffer: Uint8Array): string

Array buffer to text, needed for crypto operations. The text is decoded from UTF-8, which is the default for the WebCrypto API.

Parameters

byteBuffer: Uint8Array

Return Type

string

Usage

import { bytesToText } from "lib/utils.ts";