$$服务端安装libsodium支持chacha20

  • 3
  • 42,545 views
  • A+
所属分类:Linux

$$如果要使用 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.gz
tar 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

weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:3   其中:访客  0   博主  0

    • 禅猫 禅猫 3

      请问debian下怎么安装chacha20?
      按照提示安装给个这个错误提示
      libtool: warning: ‘-version-info/-version-number’ is ignored for convenience libraries 求解
      说是什么版本。。没看懂

        • 厘米 厘米 9

          @禅猫 我debian7装了很多次都没遇见这个啊,你先apt-get update && apt-get dist-upgrade -y更新一下呢。

        • hao hao 0

          谢谢,一下子就成功了。我的是Ubuntu系统。