Skip to content

Instantly share code, notes, and snippets.

@navartis
Forked from cho0o0/generateAccesskey.js
Created August 28, 2023 21:42
Show Gist options
  • Save navartis/97586ddde5fce890d410b0746f78b2ca to your computer and use it in GitHub Desktop.
Save navartis/97586ddde5fce890d410b0746f78b2ca to your computer and use it in GitHub Desktop.
Generate Outline access key based on Shadowsocks infomation
const generateAccesskey = (method, password, ip, port) => {
const firstPart = btoa(`${method.toLowerCase()}:${password}`)
const secondPart = `${ip}:${port}`
const accesskey = `ss://${firstPart}@${secondPart}`
return accesskey
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment