Don't ask to ask, just ask | |
PerlMonks |
Decrypt a file with known algo and passwordby pileofrogs (Priest) |
on Mar 12, 2010 at 01:01 UTC ( [id://828177]=perlquestion: print w/replies, xml ) | Need Help?? |
pileofrogs has asked for the wisdom of the Perl Monks concerning the following question: Greetings Monks! Forgive me as I attempt, once again, to waste your time. This is more a general crypto question than a perl question, but any implementation I create will be in perl, so be merciful. I have a password keeper program that keeps the passwords in a proprietary text file format, encrypted with AES128 and I know the password. I can open and close it with the afore-mentioned program, but I want to be able to decrypt and re-encrypt it outside of that app, so I can automate some of the tedious stuff. I figure, if I know the password, it should be easy, right? Except, I have no idea where to start. I've googled around and all I get is pages telling me how to reset the admin password on Windows... Anyone have any ideas? Update:I've tried running it through gpg, but it's not in a gpg format. That's the thing. You'd think, if you know the algo and the password, it would be easy. What if the application makers put a salt on my password? What if they put the encrypted data inside a padding of their own design? There are all kind of things they could do to make it difficult for a layman like myself to decrypt, but still easy for the guys at the NSA. I'm trying to figure out how the guys at the NSA would do it. Thanks!
Back to
Seekers of Perl Wisdom
|
|