How to use the rsa_create_keypair function from bindings
Find comprehensive JavaScript bindings.rsa_create_keypair code examples handpicked from public code repositorys.
GitHub: cubbit/enigma
37 38 39 40 41 42 43 44 45 46
//#region static public static async create_keypair(options?: RSA.KeypairOptions): Promise<RSA.Keypair> { return bindings.rsa_create_keypair((options && options.size) || defaults.rsa.key_bits, (options && options.exponent) || defaults.rsa.exponent); } public static async encrypt(message: string | Buffer, public_key: Buffer): Promise<Buffer> {
4
101
25
bindings.createKey is the most popular function in bindings (8616 examples)