multipassify-ts
Version:
This is an example TypeScript Package ready to be published on npm. It has been set up with automated tests and package publishing workflow using GitHub Actions CI/CD. It is made primarily for GitHub + VS Code (Windows / Mac / Linux) users who are about t
11 lines (10 loc) • 364 B
TypeScript
/// <reference types="node" />
export declare class Multipassify {
_encryptionKey: Buffer;
_signingKey: Buffer;
constructor(secret: string);
encode(obj: Partial<Record<string, any>>): string;
generateUrl(obj: Partial<Record<string, any>>, domain: string | URL): string;
sign(data: Buffer): Buffer;
encrypt(plaintext: string): Buffer;
}