How To Install python-srp on Debian 10

Learn how to install python-srp on Debian 10 with this tutorial. python-srp is Secure Remote Password protocol implementation

Introduction

In this tutorial we learn how to install python-srp on Debian 10.

What is python-srp

python-srp is:

This package provides an implementation of the Secure Remote Password protocol (SRP). SRP is a cryptographically strong authentication protocol for password-based, mutual authentication over an insecure network connection.

Unlike other common challenge-response authentication protocols, such as Kereros and SSL, SRP does not rely on an external infrastructure of trusted key servers or certificate management. Instead, SRP server applications use verification keys derived from each user’s password to determine the authenticity of a network connection.

SRP provides mutual-authentication in that successful authentication requires both sides of the connection to have knowledge of the user’s password. If the client side lacks the user’s password or the server side lacks the proper verification key, the authentication will fail.

Unlike SSL, SRP does not directly encrypt all data flowing through the authenticated connection. However, successful authentication does result in a cryptographically strong shared key that can be used for symmetric-key encryption.

There are three methods to install python-srp on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-srp Using apt-get

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

sudo apt-get update

After updating apt database, We can install python-srp using apt-get by running the following command:

sudo apt-get -y install python-srp

Install python-srp Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-srp using apt by running the following command:

sudo apt -y install python-srp

Install python-srp 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-srp using aptitude by running the following command:

sudo aptitude -y install python-srp

How To Uninstall python-srp on Debian 10

To uninstall only the python-srp package we can use the following command:

sudo apt-get remove python-srp

Uninstall python-srp And Its Dependencies

To uninstall python-srp and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-srp

Remove python-srp Configurations and Data

To remove python-srp configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-srp

Remove python-srp configuration, data, and all of its dependencies

We can use the following command to remove python-srp configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-srp

Dependencies

python-srp have the following dependencies:

References

Summary

In this tutorial we learn how to install python-srp package on Debian 10 using different package management tools: apt, apt-get and aptitude.