method webcrypto.SubtleCrypto.sign
Usage in Deno
```typescript import { type webcrypto } from "node:node__crypto.d.ts"; ```
SubtleCrypto.sign(): Promise<ArrayBuffer>
Using the method and parameters given by `algorithm` and the keying material provided by `key`,
`subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
the returned promise is resolved with an `` containing the generated signature.
The algorithms currently supported include:
- `'RSASSA-PKCS1-v1_5'`
- `'RSA-PSS'`
- `'ECDSA'`
- `'Ed25519'`
- `'Ed448'`
- `'HMAC'`
Promise<ArrayBuffer>