Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Chacha20 encryption algorithm in Centos7

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how Centos7 installs the Chacha20 encryption algorithm. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Some programs will use Chacha20 encryption algorithm, if the Centos7 system error Exception: libsodium not found, then the lack of M2Crypto and libsodium dependent environment

Salsa20 is a stream encryption algorithm that is submitted to eSTREAM by Daniel J. Bernstein. It is created on top of pseudorandom functions based on add-rotate-xor (ARX) operations-32-bit modular addition, XOR, and cyclic shift operations. Salsa20 maps a 256-bit key, a 64-bit nonce, and a 64-bit stream location to a 512-bit output (there is also a 128-bit key version). This gives Salsa20 the unusual advantage that users can find anywhere in the output stream in a constant amount of time. It can provide a speed of about one byte every 14 cycles in modern x86 processors and has reasonable hardware performance. It is not patented, and Bernstein has written several public domain implementations of common architectural optimizations. Salsa20 has been submitted to eSTREAM.

A related cryptographic algorithm, ChaCha, which has similar characteristics but different cyclic shift functions, has been released by Bernstein in 2008.

Brief introduction of M2Crypto and Libsodium

M2Crypto: a Python encryption and SSL toolkit

M2Crypto is the most complete Python wrapper for OpenSSL features RSA,DSA,DH,EC,HMAC, message digest, and symmetric passwords (including AES). The SSL function implements the client and server; Python extends Python's httplib,urllib and xmlrpclib; unforgeable HMAC'AuthCookie for network session management; FTP / TLS client and server; S / MIME; ZServerSSL:Zope and ZSmime's HTTPS server: Zope's S / MIME messenger. M2Crypto can also be used to provide SSL for Twisted. Smart cards are supported through the engine interface.

Libsodium

Used for encryption, decryption, signature, password hashing, the goal is to provide all the core operations needed to build a higher-level encryption tool. Despite the emphasis on high security, primitives are faster than most implementations of the NIST standard.

If your centos7 system needs to support Chacha20 encryption algorithm, please use the following command to install

Yum install m2crypto gcc-ywget-N-- no-check-certificate https://download.libsodium.org/libsodium/releases/libsodium-1.0.8.tar.gztar zfvx libsodium-1.0.8.tar.gzcd libsodium-1.0.8./configuremake & & make installecho "include ld.so.conf.d/*.conf" > / etc/ld.so.confecho "/ lib" > > / etc/ld.so.confecho "/ usr/lib64" > > / etc/ld.so.confecho "/ usr / local/lib "> > / etc/ld.so.confldconfig Thank you for reading! This is the end of this article on "how to install Chacha20 encryption algorithm in Centos7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report