Deno 1.14, the latest update to the TypeScript/JavaScript runtime and rival to Node.js, features a number of new additions to the Web Crypto API. The Web Crypto API is a standard JavaScript API for performing cryptographic operations such as hashing, signature generation, and encryption and decryption.
Published September 14, Deno 1.14 adds
1 | crypto.subtle.exportKey() |
, which enables HMAC (Hash-based Messaging Authentication Code) keys to be exported in both JWK (Json Web Key) and “raw” formats, and allows RSA keys to be exported in pkcs#8 format. Release notes cite a number of other new Web Crypto APIs including
1 | crypto.subtle.encrypt() |
and
1 | crypto.subtle.decrypt() |
, which support RSA-OAEP (Optimal Asymetric Encryption Padding).
0 Comments