How To Install libcrypt-hcesha-perl on Ubuntu 18.04

In this tutorial we learn how to install libcrypt-hcesha-perl on Ubuntu 18.04. libcrypt-hcesha-perl is Perl extension for one way hash chaining encryption using SHA

Introduction

In this tutorial we learn how to install libcrypt-hcesha-perl on Ubuntu 18.04.

What is libcrypt-hcesha-perl

libcrypt-hcesha-perl is:

This module implements a chaining block cipher using a one way hash. This method of encryption is the same that is used by radius (RFC2138) and is also described in Applied Cryptography.

Two interfaces are provided in the module. The first is straight block encryption/decryption the second does base64 mime encoding/decoding of the encrypted/decrypted blocks.

The idea is that the two sides have a shared secret that supplies one of the keys and a randomly generated block of bytes provides the second key. The random key is passed in cleartext between the two sides.

An example client and server are packaged as modules with this module. They are used in the tests. They can be found in the examples directory.

There are three methods to install libcrypt-hcesha-perl on Ubuntu 18.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 libcrypt-hcesha-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libcrypt-hcesha-perl using apt-get by running the following command:

sudo apt-get -y install libcrypt-hcesha-perl

Install libcrypt-hcesha-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcrypt-hcesha-perl using apt by running the following command:

sudo apt -y install libcrypt-hcesha-perl

Install libcrypt-hcesha-perl 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 libcrypt-hcesha-perl using aptitude by running the following command:

sudo aptitude -y install libcrypt-hcesha-perl

How To Uninstall libcrypt-hcesha-perl on Ubuntu 18.04

To uninstall only the libcrypt-hcesha-perl package we can use the following command:

sudo apt-get remove libcrypt-hcesha-perl

Uninstall libcrypt-hcesha-perl And Its Dependencies

To uninstall libcrypt-hcesha-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libcrypt-hcesha-perl

Remove libcrypt-hcesha-perl Configurations and Data

To remove libcrypt-hcesha-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcrypt-hcesha-perl

Remove libcrypt-hcesha-perl configuration, data, and all of its dependencies

We can use the following command to remove libcrypt-hcesha-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcrypt-hcesha-perl

References

Summary

In this tutorial we learn how to install libcrypt-hcesha-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.