Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function generateKeyPairSync
Re-export
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">