5 Ways to generate strong passwords in Linux
Introduction Its extremely important for any system administrator to maintain strong passwords for their servers and databases so that they do not get exposed to hackers in case of brute force attacks or other password infiltration attempts. In this article we’ll share five different command line tools using which you can generate potent and strong passwords. Method 1: Using OpenSSL OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them. The openssl program is a command line tool for using the various cryptography functions of OpenSSL’s crypto library from the shell. Some of it’s popular uses are listed below: Creation and management of private keys, public keys and parameters Public key cryptographic operations Creation of X.509 certificates, CSRs and CRLs Calculation of Message Digests Encryption and Decryption with Ciphers Random string generation OpenSSL is generally installed by default on most Linux distributions. In case it’s missing you may install it using the command “yum install openssl”. OpenSSL is part of the base repository for RHEL/Centos operating systems. We will use the rand (Generate pseudo-random bytes) option with the openssl command to generate an alphanumeric string which can be used as a password. [root@linuxnix ~]# openssl rand -base64 15 1Caxj6P7GfJzJwDeJP2G [root@linuxnix ~]# Base64 is an encoding format used in applications and different...
Read More