Skip to content

Instantly share code, notes, and snippets.

@WillSquire
Created May 31, 2019 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSquire/842051d2a6869c2170a8981f13421c7f to your computer and use it in GitHub Desktop.
Save WillSquire/842051d2a6869c2170a8981f13421c7f to your computer and use it in GitHub Desktop.

By Shell:

echo "username:password" | base64

By Node:

node
console.log(Buffer.from('username:password').toString('base64'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment