Trouble Remembering Too Many Login Credentials – Password Management with Encryption
This article explains some techniques on how to make your own password manager and convert it into a more secured application with some techniques.
Most of us have 5 to 10 Login IDs and Passwords to be maintained including Facebook, Twitter, LinkedIn, Gmail, Bank Accounts, Workplace login etc. The list would never end and it is difficult to remember every Login Credential. We tend to forget or trouble remembering the password. Other than our Brain’s Memory, we would love to have a safe & secured place to store these credentials.
For this Purpose, You can choose any Password Manager tools available in market after doing a thorough analysis or you can use the techniques explained in this blog.
Secure Your System As well
In reality there is no such thing as 100% Safe when you are connected to Internet. Whatever we encrypt and how hard be it, hackers are definitely smarter than what we are. So, what best can we do?
Let’s give a tough fight as much as we can. We will discuss on best ideas for hiding all our passwords from unauthorized use.
But remember, hiding everything inside a box does not make it a safest place. Use it wise whenever you open it out. Always ensure that the system that you are typing them is secured, else it is like a Rat Hole in Kitchen. Enough Stories Jump on to the Point.
Encrypt Passwords and Fine Tune
It is easy to store your entire Login Credentials list in Excel and encrypt it by using VBA (A Sample encryption VBA code is presented below).
The worst part is that, most encryption algorithm is reversible and could be cracked. Then how to make a strong Password Manager?
- Split your Password into 2 or multiple parts and store only a part of it and hide others in different format. So that, even when you’re Password Manager is cracked, hacker will gain only a part of it.
- Fill the excel sheet with Login Ids and passwords (1000s of email ids and passwords) and then insert the original Login Credentials in between. So that after cracking your Excel, hackers will be confused about which one is original.
- Make the font of text to match with the background color. So that the excel document when opened will look like empty document.
These are some of the possible different methods that can make our Password Manager into a more secured application.
Enter Login Credentials and Apply Some Basic Encryption
The below code get list of Login Details along with Password and request user to enter a Master Password. Then, it encrypts all the details entered in the shees1.
This is only a basic encryption method. Users can modify this code to any strong encryption method and implement ideas discussed above in this topic, to make this Password Manager a more secure one.
Visual Basic123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051Private Sub Pwd_Manager_Encrypt()'Get Option from User: 1-Encryption or 2-DecryptionUser_Option = InputBox("1-Encryption or 2-Decryption")'Get Master Password from UserDim User_Master_Password As StringUser_Master_Password = InputBox("Enter Master Password - (Maximum Allowed Password Length 20)")'Get Encryption Code for Each Character in PasswordDim Encrypt_Key(21) As IntegerFor i = 1 To VBA.Len(User_Master_Password)TempN = VBA.Asc(VBA.Mid(User_Master_Password, i, 1))While TempN > 10TempN = Int(Abs(TempN / 10))WendEncrypt_Key(i) = TempNNext i'Loop Through Each Login Credential and Encrypt ItFor iRow = 1 To 20For iCol = 1 To 2Output_Text = ""Input_Text = ThisWorkbook.Sheets(1).Cells(iRow, iCol)Idx_Key = 1For iChar = 1 To VBA.Len(Input_Text)'Add Encryption Key to Each Input CharacterIf User_Option = 1 ThenTempN = VBA.Asc(VBA.Mid(Input_Text, iChar, 1)) + Encrypt_Key(Idx_Key)End IfIf User_Option = 2 ThenTempN = VBA.Asc(VBA.Mid(Input_Text, iChar, 1)) - Encrypt_Key(Idx_Key)End If'Encrypt or Decrypt and create Output TextOutput_Text = Output_Text & VBA.Chr(TempN)If Idx_Key > VBA.Len(User_Master_Password) ThenIdx_Key = 1ElseIdx_Key = Idx_Key + 1End IfNext iChar'Write Encrypted Key to Sheet'Code here writes output to a different sheet.'Once your testing is completed, Write Output to same sheet.ThisWorkbook.Sheets(2).Cells(iRow, iCol) = Output_TextNext iColNext iRowEnd Sub
If your system is already compromised, any stealth mode apps are stealing your key strokes, and then there is no point in using the world’s most secured Password Manager. Google for the related topics on how to use passwords safely while you are in Internet.
Related Posts on Error Handling and Security
- How to Remove Junk Data from Text File?
- How to deal with #NA error in Excel Formula?
- How to get list of running tasks from Task Manager to Excel?
Previous Post: Password Protect Excel 2010 & 2007
Next Post: Display Recent Posts with Thumbnails without Plugins – WordPress
Safe Password Manager – Secure All Your Passwords