Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mongodb-js/saslprep

Package Overview
Dependencies
Maintainers
33
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/saslprep

SASLprep: Stringprep Profile for User Names and Passwords, rfc4013

  • 1.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
33
Created

What is @mongodb-js/saslprep?

The @mongodb-js/saslprep package is a Node.js implementation of the SASLprep algorithm, which is used for preparing strings for use in Simple Authentication and Security Layer (SASL) mechanisms, such as SCRAM (Salted Challenge Response Authentication Mechanism). It's particularly useful for sanitizing and normalizing user passwords before they are sent over the network for authentication purposes.

What are @mongodb-js/saslprep's main functionalities?

String preparation for SCRAM authentication

This feature allows you to prepare a string (typically a password) for use in SCRAM authentication by applying the SASLprep algorithm. It normalizes the string, which includes removing prohibited output, mapping input, and normalizing the string using Unicode normalization form KC (NFKC).

const saslprep = require('@mongodb-js/saslprep');
const prepared = saslprep('user\u00A0password');
console.log(prepared); // Outputs the prepared string, with non-ASCII space characters replaced, etc.

Other packages similar to @mongodb-js/saslprep

Keywords

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc