libsodium.js is a JavaScript and WebAssembly port of the widely used libsodium cryptographic library, providing modern, high-level cryptographic functions for secure application development in web and Node.js environments. It exposes a comprehensive set of APIs for encryption, decryption, hashing, digital signatures, and key exchange, all designed to be safe and easy to use without requiring deep cryptographic expertise. The library leverages WebAssembly for improved performance, enabling near-native execution speeds within browsers and JavaScript runtimes. It is designed to prevent common cryptographic mistakes by offering secure defaults and abstractions that reduce the risk of misuse. libsodium.js is particularly useful for building secure web applications, messaging systems, and privacy-focused tools that require client-side encryption. It also maintains compatibility with the native libsodium library, allowing interoperability across different platforms and languages.

Features

  • WebAssembly-powered high-performance cryptographic operations
  • Support for encryption, hashing, signatures, and key exchange
  • Secure-by-default APIs to reduce implementation errors
  • Compatibility with native libsodium across platforms
  • Usable in both browser and Node.js environments
  • Designed for modern secure web and application development

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow libsodium.js

libsodium.js Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libsodium.js!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Libraries

Registered

2026-03-27