Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/somefn/js/hash.ts>rsaSign

some functions for deno
Go to Latest
function rsaSign
import { rsaSign } from "https://deno.land/x/somefn@v0.27.0/js/hash.ts";

Sign data with RSA

  • only pkcs8
  • only RSASSA-PKCS1-v1_5

Parameters

key: { hash: "SHA-256" | "SHA-512"; s: string | Uint8Array; } | CryptoKey
d: string | Uint8Array

Returns

Promise<Uint8Array>