A strong password provides safety. Plain text passwords are extremely insecure, so we need to strengthen the passwords by hashing the password. Hashing passwords is a cheap and secure method that keeps the passwords safe from malicious activity. Password hashing generates a unique password for every text, even if the plaintext password is the same.
[mai mult...]Russian Peasant (Multiply two numbers using bitwise operators)
Given two integers, write a function to multiply them without using multiplication operator.
There are many other ways to multiply two numbers. One interesting method is the Russian peasant algorithm. The idea is to double the first number and halve the second number repeatedly till the second number doesn’t become 1. In the process, whenever the second number become odd, we add the first number to result (result is initialized as 0).
Write an Efficient C Program to Reverse Bits of a Number
Given an unsigned integer, reverse all bits of it and return the number with reversed bits.
Input : n = 1
Output : 2147483648
Explanation : On a machine with size of unsigned bit as 32. Reverse of 0….001 is 100….0.
[mai mult...]Cat command in Linux with examples
Cat (concatenate) command is very frequently used in Linux. It reads data from the file and gives its content as output. It helps us to create, view, and concatenate files. So let us see some frequently used cat commands.
[mai mult...]Encrypt/Decrypt Files in Linux using Ccrypt
Ccrypt is a command line tool for encryption and decryption of data. Ccrypt is based on the Rijndael cipher, the same cipher used in the AES standard. On the other hand, in the AES standard, a 128-bit block size is used, whereas ccrypt uses a 256-bit block size. Ccrypt commonly uses the .cpt file extension for encrypted.
[mai mult...]Chpasswd command in Linux with examples
chpasswd command is used to change password although passwd command can also do same. But it changes the password of one user at a time so for multiple users chpasswd is used. Below figure shows the use of passwd command. Using passwd we are changing the password of the guest user. Here first you have to enter the password of the currently signed user and then you change the password of any other user. One must have administrator privileges.
[mai mult...]How to create a password protected ZIP File in Linux?
Linux provides Zip command to work with a file like compressing the file and decompressing with a password. It’s not come with built-in you need to install from an external source. The Zip command has two different utility(zip and unzip). zip is used for compressing the file and unzip is used for decompressing the file.
[mai mult...]How to Crack Excel File Password?
Excel sheets are the most important method to share data with others. Like other Microsoft Office products, it is also widely used by many users throughout the globe. MS Word and MS PowerPoint are used by a lot of users in the world. Along with that, Excel sheets are also used for making tables.
[mai mult...]Recover password of password protected zip file
I’m using Linux I went with a quick search and came across fcrackzip. This is a free program that allows for both dictionary and brute force cracking of zip file passwords. It is not difficult to use and offers a wide range of options. Let’s make a zip file then we will copy-paste it into Linux after that we will try to break this password by fcrackzip. I created a zip file. This zip file’s password is 12345678.
[mai mult...]How to Password Protect a Microsoft Word Document?
Microsoft Word is a software tool that allows us to create document files like articles, office letters, project files, and many more in a very simplest and easy manner. MS Word makes our document more attractive as compared to paper or file work by providing different features like it has different sizes of pages, fonts, colors, design, bullets, tables, charts, page border/number, and many more.
It also provides various features like editing, texting, formatting, graphics designs, fonts color, and styles, inserting images, videos, printing documents, etc. This MS Word software saves our article/letters in a form of a document and saves it on the computer forever. Whenever it is required it can be shared or can access the document.
[mai mult...]