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 DiffieHellmanGroup.prototype.computeSecret
Re-export
import { DiffieHellmanGroup } from "https://deno.land/std@0.143.0/node/crypto.ts";

Parameters

otherPublicKey: ArrayBufferView

Returns

Buffer

Parameters

otherPublicKey: string
inputEncoding: BinaryToTextEncoding

Returns

Buffer

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