How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread diyu01
Hi, I am using vim to edit encrypted files and it works great. However, I want to be able to read the (decrypted) file content from a C++ application using cryptopp library. I am willing to embed the password into the application, but how do I access the data? For example, if the data is encrypted

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Yu Di
Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip encryption does not change (as pkzip encryption does not have an iv), so I think those are the encrypted bytes, but I cannot figure out what decryption algorithm to

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Christian Brabandt
Hi Yu! On Di, 12 Apr 2011, Yu Di wrote: Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip encryption does not change (as pkzip encryption does not have an iv), so I think those are the encrypted bytes, but I

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Yu Di
Thanks! Let me check that. On Tue, Apr 12, 2011 at 12:07 PM, Christian Brabandt cbli...@256bit.orgwrote: Hi Yu! On Di, 12 Apr 2011, Yu Di wrote: Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip