Created
January 24, 2026 05:03
-
-
Save anton-matosov/555ebe73f30a1dcb3070c34998df0144 to your computer and use it in GitHub Desktop.
node-argon2 hashed password for code-server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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