Skip to content

Instantly share code, notes, and snippets.

@anton-matosov
Created January 24, 2026 05:03
Show Gist options
  • Select an option

  • Save anton-matosov/555ebe73f30a1dcb3070c34998df0144 to your computer and use it in GitHub Desktop.

Select an option

Save anton-matosov/555ebe73f30a1dcb3070c34998df0144 to your computer and use it in GitHub Desktop.
node-argon2 hashed password for code-server
import { hash, verify } from 'node-argon2';
const password = 'password here';
const passwordHash = await hash(password);
const escaped = String(passwordHash).replaceAll('$', '$$$$')
console.log(`${escaped}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment