Module

std/node/crypto.ts

Deno standard library
Go to Latest
function generateKeyPairSync
import { generateKeyPairSync } from "https://deno.land/std@0.145.0/node/crypto.ts";

Parameters

type: "rsa"
options: RSAKeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "rsa"
options: RSAKeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "rsa"
options: RSAKeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "rsa"
options: RSAKeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "rsa-pss"
options: RSAPSSKeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "rsa-pss"
options: RSAPSSKeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "rsa-pss"
options: RSAPSSKeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "rsa-pss"
options: RSAPSSKeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "dsa"
options: DSAKeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "dsa"
options: DSAKeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "dsa"
options: DSAKeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "dsa"
options: DSAKeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "ec"
options: ECKeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "ec"
options: ECKeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "ec"
options: ECKeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "ec"
options: ECKeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "ed25519"
options: ED25519KeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "ed25519"
options: ED25519KeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "ed25519"
options: ED25519KeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "ed25519"
options: ED25519KeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "ed448"
options: ED448KeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "ed448"
options: ED448KeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "ed448"
options: ED448KeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "ed448"
options: ED448KeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "x25519"
options: X25519KeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "x25519"
options: X25519KeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "x25519"
options: X25519KeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "x25519"
options: X25519KeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

type: "x448"
options: X448KeyPairOptions<"pem", "pem">

Returns

KeyPairSyncResult<string, string>

Parameters

type: "x448"
options: X448KeyPairOptions<"pem", "der">

Returns

KeyPairSyncResult<string, Buffer>

Parameters

type: "x448"
options: X448KeyPairOptions<"der", "pem">

Returns

KeyPairSyncResult<Buffer, string>

Parameters

type: "x448"
options: X448KeyPairOptions<"der", "der">

Returns

KeyPairSyncResult<Buffer, Buffer>

Parameters

_type: KeyType
_options: unknown

Returns

KeyPairKeyObjectResult | KeyPairSyncResult<string | Buffer, string | Buffer>
import generateKeyPairSync
import { generateKeyPairSync } from "https://deno.land/std@0.145.0/node/crypto.ts";