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

Parameters

otherPublicKey: ArrayBufferView

Parameters

otherPublicKey: string
inputEncoding: BinaryToTextEncoding

Parameters

otherPublicKey: ArrayBufferView
outputEncoding: BinaryToTextEncoding

Returns

string

Parameters

otherPublicKey: string
inputEncoding: BinaryToTextEncoding
outputEncoding: BinaryToTextEncoding

Returns

string

Parameters

_otherPublicKey: ArrayBufferView | string
optional
_inputEncoding: BinaryToTextEncoding
optional
_outputEncoding: BinaryToTextEncoding

Returns

Buffer | string