为Shadowsocks使用chacha20加密方式

yum install m2crypto -y

安装libsodium

wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar zxf LATEST.tar.gz
cd libsodium*
./configure && make -j2 && make install

修复关联

echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig

然后就可以在运行Shadowsocks的时候选chacha20加密了