shadowsocks 改用 chacha20 加密算法

28,835 views次阅读
一条评论

提醒:本文最后更新于2025-06-19 10:40,文中所关联的信息可能已发生改变,请知悉!

shadowsocks 改用 chacha20 加密算法

关于 CHACHA20 加密算法

Shadowsocks 的作者推荐的加密算法是 aes-256-cfb,但是使用手机和 openwrt 的路由器来说,压力还是不小,于是人们就创造了 salsa20 这个算法,这个算法比起 rc4,足足快了两倍,而安全性也大大加强了,而谷歌,作为手机系统的老大,又对 salsa20 进行了改造,创造了 chacha20 这一算法,这一算法在 ARM 平台上的速度是惊人的,而 chacha20 相对于他的前任在速度和安全性的方面又有了很大提升。

 

这样的优势,所以改用 chacha20 是首选。

 

首先,要安装 libsodium ,系统才能支持 chacha20 算法。

 

apt-get install build-essential

wget https://github.com/jedisct1/libsodium/releases/download/1.0.3/libsodium-1.0.3.tar.gz

tar xf libsodium-1.0.3.tar.gz && cd libsodium-1.0.3

./configure && make && make install

ldconfig

 

-END-

 

正文完
 0
HopoL
版权声明:本站原创文章,由 HopoL 于2016-10-05发表,共计489字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(一条评论)
ABC 评论达人 LV.1
2020-06-11 01:07:45 回复

Salsa20和ChaCha20都是由密码学教授Daniel J. Bernstein发明的,与Google无关

 Android  Chrome  中国广东省佛山市移动

HopoL's Blog

文章搜索
最新评论
MickeyDee MickeyDee Thanks for the reply, according to Unraid Dev team, it may happen this year.
Metaldololity Metaldololity Whoa, that's really simple. You just save my time a lot. Thankyou!
HopoL HopoL Since you’ve got the backup, it’s actually pretty simple. Just restore the backup files to your new flash drive, then head over to the /config directory and edit the go file. Look for export UNRAID_GUID=xxxxxxxxxxxxxx and swap it with your new drive's GUID. That should do the trick!
Metaldololity Metaldololity Really apreciate for your fast respond, mate. I actually have the backup of the flashdrive (from regular unraid backup). The problem is, when i search on youtube tutorial about changing the failed flashdrive, the process need some sort of confirmation with an account in unraid (blacklist the old one -> whitelist the new one). Since i have a cracked unraid, i don't know how to register my new flashdrive as the correct one (and the system not asking me for the old failed flashdrive). Thanks in advance
HopoL HopoL Man, that's a tough spot to be in. Regularly backing up your /boot folder is super important for exactly this reason. If you don't have a backup and your flash drive is completely fried, your best bet is to Google some specific recovery guides or check the Unraid forums. There are ways to rebuild your config by identifying your parity and data drives, but it can be a bit of a process. Hope you can get it sorted!