textToBytes(text: string): Uint8Array
Text to array buffer, needed for crypto operations. The text is encoded in UTF-8, which is the default for the WebCrypto API.
textToBytes(text: string): Uint8Array
Text to array buffer, needed for crypto operations. The text is encoded in UTF-8, which is the default for the WebCrypto API.
import { textToBytes } from "lib/utils.ts";