How To Install python-srp on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-srp
on Ubuntu 18.04.
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 autentication 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 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 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 Ubuntu. 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 Ubuntu 18.04
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 Ubuntu 18.04, 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 Ubuntu 18.04 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
References
Summary
In this tutorial we learn how to install python-srp
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.