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 DiffieHellman.prototype.computeSecret
import { DiffieHellman } from "https://deno.land/std@0.176.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