Skip to content

Instantly share code, notes, and snippets.

@cho0o0
Last active November 13, 2024 19:53
Show Gist options
  • Save cho0o0/1b8ef91001919646a55950a08cb132be to your computer and use it in GitHub Desktop.
Save cho0o0/1b8ef91001919646a55950a08cb132be 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
}
@i0Z3R0
Copy link

i0Z3R0 commented Feb 28, 2022

@onelion345 @joaoamigo @zigantm
You have to have a server, just run the script in like the Console of Chrome.
Paste the script in the console, press enter.
Run generateAccesskey(method, password, ip, port)
For example, generateAccesskey("aes-256-gcm", "Password1!", "127.0.0.1", "8080")
Then you'll see something like 'ss://[email protected]:8080' or something like that, and that's the access key.

@Mina634
Copy link

Mina634 commented Feb 5, 2023

Plz give me outline keys

@iamryanchia
Copy link

Save your time! if outline warnes invalid access key, check the cipher (method) passed to function is chacha20-ietf-poly1305, this is critical.

As a note, AEAD_CHACHA20_POLY1305 is a alias of chacha20-ietf-poly1305.

@pooriya5
Copy link

Please give me outline key

@kyaygyi
Copy link

kyaygyi commented Jun 17, 2024

vလိုင်းမကောင်းလို့

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment