import * as simpleUtility from "https://deno.land/x/simple_utility@v2.3.2/src/pure/crypto.ts";
Functions
Decrypt binary. Algorithm is AES-GCM with 128 bits key, 128 bits tag and 96 bits IV. IV is read from head of cipher. | |
Encrypt binary. Algorithm is AES-GCM with 128 bits key, 128 bits tag and 96 bits IV. IV is prepended to cipher. | |
Generate exportable public-key pair for ECDH. Curve algorithm is "NIST P-256". Key format is SPKI for public-key and PKCS8 for private-key. | |
Generate exportable public-key pair for ECDSA. Curve algorithm is "NIST P-256". Key format is SPKI for public-key and PKCS8 for private-key. | |
Derive hash value from binary. Default is SHA-256. | |
Generate random binary with any number of bytes. | |
Create signature using private-key. | |
Verify signature using public-key. |