VPS 安装libsodium支持chacha20加密算法[转]

0
54

如果要使用salsa20或chacha20或chacha20-ietf算法,以前找了几个版本,有问题,本人测试可以,安装libsodium即可使用chacha20:

CentOS的:

yum install epel-release yum install libsodium 

如果想自己编译,那么可以用以下的命令

yum -y groupinstall "Development Tools" wget https://github.com/jedisct1/libsodium/releases/download/1.0.12/libsodium-1.0.12.tar.gz tar xf libsodium-1.0.12.tar.gz && cd libsodium-1.0.12 ./configure && make -j2 && make install echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf ldconfig 

Ubuntu的/ Debian的:

apt-get install build-essential wget https://github.com/jedisct1/libsodium/releases/download/1.0.12/libsodium-1.0.12.tar.gz tar xf libsodium-1.0.12.tar.gz && cd libsodium-1.0.12 ./configure && make -j2 && make install ldconfig 

如果曾经安装过旧版本,亦可重复用以上步骤更新到最新版,仅1.0.4或以上版本支持chacha20-IETF

https://github.com/breakwa11/shadowsocks-rss/wiki/libsodium