UNPKG

@meeco/cryppo

Version:

In-browser encryption and decryption. Clone of Ruby Cryppo

10 lines (9 loc) 411 B
export interface ISignature { signature: string; serialized: string; data: Uint8Array; keySize: number; } export declare function signWithPrivateKey(privateKeyPem: string, data: Uint8Array): ISignature; export declare function loadRsaSignature(serializedPayload: string): ISignature; export declare function verifyWithPublicKey(publicKeyPem: string, signatureObj: ISignature): boolean;