Skip to content

The easiest way to encrypt your data with TypeScript on the server side

License

Notifications You must be signed in to change notification settings

flarebyte/lunar-obsidian-crypt

Repository files navigation

lunar-obsidian-crypt

npm Build status npm bundle size

npm type definitions node-current NPM

Experimental

The easiest way to encrypt your data with TypeScript on the server side

Foolproof encryption functions curated for business cases

Hero image for lunar-obsidian-crypt

Highlights:

  • Simplify your encryption needs with a user-friendly library
  • Choose the best encryption method for your scenario, such as signing ID, verifying data, or securing messages
  • Avoid common encryption pitfalls with sensible defaults and best practices
  • Leverage the power and security of JOSE JWT standards

A few examples of commands:

Sign a payload with just an identifier and get back a full token:

const signResult = await signLunarCrypt.signId('product', { id:
'product123'});

Verify a full token and get back a payload:

const verifyResult = await lunarCrypt.verifyId(fullToken);

Documentation and links

Related

Installation

This package is ESM only.

yarn add lunar-obsidian-crypt