W3C Recommendation on web cryptography API

Principles and Recommendations

This specification describes a JavaScript Application Programming Interface (API) for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification of signatures, and encryption and decryption. It also describes an API for applications to generate and/or manage the keying material which is necessary to perform these operations.