How to use keygrip - 1 common examples

To help you get started, we’ve selected a few keygrip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dazejs / daze / packages / framework / src / foundation / application.ts View on Github external
registerKeys() {
    const keys = this.config.get('app.keys', ['DAZE_KEY_1']);
    const algorithm = this.config.get('app.algorithm', 'sha1');
    const encoding = this.config.get('app.encoding', 'base64');
    this.keys = new Keygrip(keys, algorithm, encoding);
  }

keygrip

Key signing and verification for rotated credentials

MIT
Latest version published 6 years ago

Package Health Score

74 / 100
Full package analysis

Popular keygrip functions