---
title: "Handle untrusted input safely"
description: "Sanitize markup and work with password hashing or cryptographic formats."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Start with the tradeoff">Use the library within a complete application design and follow its documented security assumptions.</PurposeNote>

## Options for this task

<LibraryIndex category="security" />

<LibraryCard libraryId="bcrypt-for-node-js" />

<LibraryCard libraryId="dompurify" />

<LibraryCard libraryId="isomorphic-dompurify" />

<LibraryCard libraryId="pki-js" />

## Before you decide

Try a small, realistic example. Check the runtime, accessibility, maintenance, and license requirements for the features you need.

[Browse sanitization &amp; cryptography →](/security)

[Explore more tasks →](/tasks)
