How to check I know the password for an encrypted drive

encryptionkeychainpassword

I've got an encrypted USB drive and I want to check I know the password. At the moment everything is in my keychain, so it works, and I can see its contents, but I want to make sure I'm covered if I need to replace my computer.

I want to make sure I can keep the contents if it turns out I've forgotten the password, so I don't want to delete any data from the keychain. (If I've forgotten the password, I'll need to copy its contents off before reformatting it.)

How do I do this?

Best Answer

You might be interested in exporting all of the KeyChain in to Text file that you can save for later uses.

Be aware anyone with access to your computer can now plainly see that information.

Run this in Terminal

sudo security dump-keychain -d login.keychain > keychain.txt

You will have to click "Allow" till done, or use script that does that, but since it is usually one time action just do it manually.