Skip to content

Generate QR Code for Android or iOS Clients

clowwindy edited this page Dec 5, 2014 · 19 revisions

Shadowsocks Android and iOS supports QR Code configuration.

Protocol

You can encode your server configuration to a QR Code.

  1. Put your configuration together like this:

     method:password@hostname:port
    
  2. Transform it into base64:

     bWV0aG9kOnBhc3N3b3JkQGhvc3RuYW1lOnBvcnQ=
    
  3. Prepend with ss://

     ss://bWV0aG9kOnBhc3N3b3JkQGhvc3RuYW1lOnBvcnQ=
    
  4. Generate a QR Code from the url above.

Generate via Command line

pip install qrcode
echo -n "ss://"`echo -n aes-256-cfb:[email protected]:8388 | base64` | qr

If you can't scan the code, try changing your terminal font.

image

Generate via GUI clients

You can also generate QR Codes with Shadowsocks GUI or Shadowsocks for OS X:

image