How To Install libcrypto++-dev on Kali Linux

In this tutorial we learn how to install libcrypto++-dev on Kali Linux. libcrypto++-dev is General purpose cryptographic library - C++ development

Introduction

In this tutorial we learn how to install libcrypto++-dev on Kali Linux.

What is libcrypto++-dev

libcrypto++-dev is:

Crypto++ is library for creating C++ programs which use cryptographic algorithms. The library uses a Pipes & Filters architecture with heavy use of templates and abstract base classes. The cryptographic tools include:

  • Authenticated encryption schemes (GCM, CCM, EAX),
  • High speed stream ciphers (Panama, Sosemanuk, Salsa20, XSalsa20),
  • AES and candidates (Rijndael, RC6, MARS, Twofish, Serpent, CAST-256),
  • Other symmetric block ciphers (IDEA, Triple-DES, Camellia, SEED, RC5, Blowfish, TEA, XTEA, Skipjack, SHACAL-2),
  • Block cipher modes of operation (ECB, CBC, CTS, CFB, OFB, CTR),
  • Message authentication codes (VMAC, HMAC, CMAC, CBC-MAC, DMAC, Two-Track-MAC),
  • Hash functions (SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, Tiger, WHIRLPOOL, RIPEMD-128, RIPEMD-256, RIPEMD-160, RIPEMD-320),
  • Public-key cryptography (RSA, DSA, ElGamal, NR, RW, LUC, LUCELG, DLIES, ESIGN),
  • Padding schemes for public-key systems (PKCS#1, OAEP, PSS, PSSR, EMSA2, EMSA5),
  • Key agreement schemes (DH, MQV, LUCDIF, XTR-DH),
  • Elliptic curve cryptography (ECDSA, ECNR, ECIES, ECDH, ECMQV),
  • Backwards compatibility algorithms (MD2, MD4, MD5, Panama Hash, DES, ARC4, SEAL 3.0, WAKE, WAKE-OFB, DESX, RC2, SAFER, 3-WAY, GOST, SHARK, CAST-128, Square),
  • Pseudo-random number generators, and a whole lot more. Alternative libraries are libgcrypt and nettle.

This package contains the header files needed for developing using the Crypto++ class library and the static library with libtool supoport.

There are three methods to install libcrypto++-dev 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 libcrypto++-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 libcrypto++-dev using apt-get by running the following command:

sudo apt-get -y install libcrypto++-dev

Install libcrypto++-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcrypto++-dev using apt by running the following command:

sudo apt -y install libcrypto++-dev

Install libcrypto++-dev 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 libcrypto++-dev using aptitude by running the following command:

sudo aptitude -y install libcrypto++-dev

How To Uninstall libcrypto++-dev on Kali Linux

To uninstall only the libcrypto++-dev package we can use the following command:

sudo apt-get remove libcrypto++-dev

Uninstall libcrypto++-dev And Its Dependencies

To uninstall libcrypto++-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libcrypto++-dev

Remove libcrypto++-dev Configurations and Data

To remove libcrypto++-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libcrypto++-dev

Remove libcrypto++-dev configuration, data, and all of its dependencies

We can use the following command to remove libcrypto++-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcrypto++-dev

Dependencies

libcrypto++-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libcrypto++-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.