Skip to content

💭 How do I access the new Blake3 algo #855

@XChikuX

Description

@XChikuX

Question

I'm not able to easily replace my existing code with the new blake3 support.

What I tried

async function makeHmac(msg: string, derivedKey: string): Promise<string> {
  const hmac = createHmac('blake3', derivedKey);
  hmac.update(msg);
  const hmacResult = hmac.digest('hex');
  
  const token = `Bearer ${hmacResult};${msg}`;
  return token;
}

QuickCrypto Version

1.0.0-beta21

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions