@stellot/crypto
Version:
Crypto libraries for front and backend
11 lines (10 loc) • 385 B
TypeScript
/// <reference types="node" />
import { BigInteger as BigInt } from 'jsbn';
import EncryptedValue from "./encryptedValue";
export default class EncryptionElGamal {
p: BigInt;
g: BigInt;
y: BigInt;
constructor(p: BigInt | string | number, g: BigInt | string | number, y: BigInt | string | number);
encrypt(m: Buffer, k?: BigInt | string | number): EncryptedValue;
}