How to use the rsa_create_keypair function from bindings

Find comprehensive JavaScript bindings.rsa_create_keypair code examples handpicked from public code repositorys.

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>
{
fork icon4
star icon101
watch icon25

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)