How To Install golang-github-aead-chacha20-dev on Ubuntu 22.04

In this tutorial we learn how to install golang-github-aead-chacha20-dev on Ubuntu 22.04. golang-github-aead-chacha20-dev is ChaCha20 and XChaCha20 stream ciphers go library

Introduction

In this tutorial we learn how to install golang-github-aead-chacha20-dev on Ubuntu 22.04.

What is golang-github-aead-chacha20-dev

golang-github-aead-chacha20-dev is:

The ChaCha20 stream cipher ChaCha is a stream cipher family created by Daniel J. Bernstein. The most common ChaCha cipher is ChaCha20 (20 rounds). ChaCha20 is standardized in RFC 7539 (https://tools.ietf.org/html/rfc7539).

This package provides implementations of three ChaCha versions: - ChaCha20 with a 64 bit nonce (can en/decrypt up to 2^64 * 64 bytes for one key-nonce combination) - ChaCha20 with a 96 bit nonce (can en/decrypt up to 2^32 * 64 bytes ~ 256 GB for one key-nonce combination)

  • XChaCha20 with a 192 bit nonce (can en/decrypt up to 2^64 * 64 bytes for one key-nonce combination)

Furthermore the chacha subpackage implements ChaCha20/12 and ChaCha20/8. These versions use 12 or 8 rounds instead of 20. But it’s recommended to use ChaCha20 (with 20 rounds) - it will be fast enough for almost all purposes.

There are three methods to install golang-github-aead-chacha20-dev on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install golang-github-aead-chacha20-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install golang-github-aead-chacha20-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-aead-chacha20-dev

Install golang-github-aead-chacha20-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-aead-chacha20-dev using apt by running the following command:

sudo apt -y install golang-github-aead-chacha20-dev

Install golang-github-aead-chacha20-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-aead-chacha20-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-aead-chacha20-dev

How To Uninstall golang-github-aead-chacha20-dev on Ubuntu 22.04

To uninstall only the golang-github-aead-chacha20-dev package we can use the following command:

sudo apt-get remove golang-github-aead-chacha20-dev

Uninstall golang-github-aead-chacha20-dev And Its Dependencies

To uninstall golang-github-aead-chacha20-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove golang-github-aead-chacha20-dev

Remove golang-github-aead-chacha20-dev Configurations and Data

To remove golang-github-aead-chacha20-dev configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge golang-github-aead-chacha20-dev

Remove golang-github-aead-chacha20-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-aead-chacha20-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-aead-chacha20-dev

References

Summary

In this tutorial we learn how to install golang-github-aead-chacha20-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.