@grandlinex/kernel
    Preparing search index...

    Class CryptoClient

    Provides cryptographic utilities used by the Core module.

    This client handles key derivation, encryption/decryption, secure token generation, hashing, UUID generation, and interaction with the kernel's key storage. The implementation relies on the Node.js crypto module and expects a 32‑byte AES key.

    Hierarchy (View Summary)

    Implements

    Index
    AesIV: string
    AesKey: string
    expiresIn: number | StringValue
    expiresInRefresh: number | StringValue
    kernel: IKernel
    • Parameters

      • enc: string
      • iv: Buffer
      • authTag: Buffer

      Returns string

    • Parameters

      • message: string

      Returns { auth: Buffer; enc: string; iv: Buffer }

    • Parameters

      • seed: string
      • val: string

      Returns string

    • Generates a signed JWT access token.

      Parameters

      • data: JwtToken

        The payload data for the token.

      • expire: number | "default" | "refresh" | StringValue = 'default'

        Optional expiration time for the token, expressed in seconds or as an ISO 8601 duration string.

      Returns Promise<string>

      A promise that resolves to the generated JWT token string.

    • Parameters

      • e_id: string

      Returns Promise<string | null>

    • Parameters

      • data: string

      Returns Promise<string>

    • Parameters

      • pw: string

      Returns string