Enable ChaCha20 cipher on CentOS 7

 

We all know or just heard of CHACHA20. CHACHA20 is a variant of Salsa20, as a stream cipher.

Install dependencies

yum install m2crypto gcc -y

Download & Install libsodium, as a library

wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/LATEST.tar.gz 
tar zvxf LATEST.tar.gz 
cd libsodium-* 
./configure 
make && make install

Add the file path to environment variable

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

Credit

Thanks to D0zingcat’s work.

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *