stega

Type:Object
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.crypto

Expose two functions named “encrypt” and “decrypt” to process content using the stega algorithm. Delegates to the @vercel/stega package under the hood.

Example

import { stega } from '@blackbyte/sugar/crypto';
const encoded = stega.encrypt({ source: 'cms', field: 'title' });
const data    = stega.decrypt(encoded);