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!
--Pileofrogs


In reply to Decrypt a file with known algo and password by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.