• Imports a key from a buffer source.

    Parameters

    • key: BufferSource

      The buffer source containing the key data.

    Returns Promise<CryptoKey>

    A promise that resolves with the imported key.

    Example

    import { importKey } from '@nexterias/hono-cookie-signature'

    const secret = await importKey(new TextEncoder().encode('THIS_IS_ULTRA_HYPER_SECRET_KEY'))

    console.log(secret)

Generated using TypeDoc