How To Install libbytes-random-secure-perl on Kali Linux

In this tutorial we learn how to install libbytes-random-secure-perl on Kali Linux. libbytes-random-secure-perl is Perl extension to generate cryptographically-secure random bytes

Introduction

In this tutorial we learn how to install libbytes-random-secure-perl on Kali Linux.

What is libbytes-random-secure-perl

libbytes-random-secure-perl is:

Bytes::Random::Secure provides two interfaces for obtaining crypt-quality random bytes. The simple interface is built around plain functions. For greater control over the Random Number Generator’s seeding, there is an Object Oriented interface that provides much more flexibility.

The “functions” interface provides five functions that can be used any time you need a string (or MIME Base64 representation, or hex-digits representation, or Quoted Printable representation) of a specific number of random bytes. There are equivalent methods available via the OO interface.

Bytes::Random::Secure can be a drop-in replacement for Bytes::Random, with the primary enhancement of using a much higher quality random number generator to create the random data. The random_bytes function emulates the user interface of Bytes::Random’s function by the same name. But with Bytes::Random::Secure the random number generator comes from Math::Random::ISAAC, and is suitable for cryptographic purposes. The harder problem to solve is how to seed the generator. This module uses Crypt::Random::Seed to generate the initial seeds for Math::Random::ISAAC.

There are three methods to install libbytes-random-secure-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libbytes-random-secure-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 libbytes-random-secure-perl using apt-get by running the following command:

sudo apt-get -y install libbytes-random-secure-perl

Install libbytes-random-secure-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libbytes-random-secure-perl using apt by running the following command:

sudo apt -y install libbytes-random-secure-perl

Install libbytes-random-secure-perl Using aptitude

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

sudo aptitude update

After updating apt database, We can install libbytes-random-secure-perl using aptitude by running the following command:

sudo aptitude -y install libbytes-random-secure-perl

How To Uninstall libbytes-random-secure-perl on Kali Linux

To uninstall only the libbytes-random-secure-perl package we can use the following command:

sudo apt-get remove libbytes-random-secure-perl

Uninstall libbytes-random-secure-perl And Its Dependencies

To uninstall libbytes-random-secure-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libbytes-random-secure-perl

Remove libbytes-random-secure-perl Configurations and Data

To remove libbytes-random-secure-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libbytes-random-secure-perl

Remove libbytes-random-secure-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libbytes-random-secure-perl

Dependencies

libbytes-random-secure-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libbytes-random-secure-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.