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.
method ECDH.convertKey
import { ECDH } from "https://deno.land/std@0.144.0/node/internal/crypto/diffiehellman.ts";

Parameters

_curve: string
optional
_inputEncoding: BinaryToTextEncoding
optional
_outputEncoding:
| "latin1"
| "hex"
| "base64"
| "base64url"
optional
_format: "uncompressed" | "compressed" | "hybrid"

Returns

Buffer | string