$$服务端安装libsodium支持chacha20

21次阅读
没有评论

共计 753 个字符,预计需要花费 2 分钟才能阅读完成。

$$如果要使用 salsa20 或 chacha20 或 chacha20-ietf 算法,需要安装 libsodium ,否则就算在config.json里面设置成chacha20也会提示method not supported. 

 centos: 

yum -y groupinstall "Development Tools"
wget https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-1.0.11.tar.gz
tar xf libsodium-1.0.11.tar.gz && cd libsodium-1.0.11./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.11/libsodium-1.0.11.tar.gztar 

xf libsodium-1.0.11.tar.gz && cd libsodium-1.0.11./configure && make -j2 && make install ldconfig 

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

引用地址:https://github.com/breakwa11/shadow*sock*s-rss/wiki/libsodium

正文完
 
admin
版权声明:本站原创文章,由 admin 2019-08-12发表,共计753字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码