-
-
Save navartis/97586ddde5fce890d410b0746f78b2ca to your computer and use it in GitHub Desktop.
Generate Outline access key based on Shadowsocks infomation
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
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