Closed (fixed)
Project:
AES encryption
Version:
6.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 15:47 UTC
Updated:
20 Oct 2010 at 16:09 UTC
I'm using this module with Backup and Migrate in order to backup privacy-sensitive data.
I'd like to manually decrypt the backup file, how can I do that? The php backend is mcrypt and I have access to a linux system with mcrypt installed.
Thanks for any pointers.
Comments
Comment #1
easyfit commentedI'm guessing that you're talking about decrypting with just using mcrypt and not this module? Should be easy enough, if you take a look at the code in aes_decrypt you'll probably get some pointers as to which mcrypt functions you need to call, and then all you have to do is to give the same arguments to mcrypt when decrypting that you gave to this module when encrypting (same key of course and same cipher and CBC-mode etc.).
Comment #2
fmjrey commentedI did, the trouble is the initialization vector which cannot be passed by command line to mcrypt.
I guess one could use php to do this.
See new feature request #947450: Add support to decrypt only without restore against that the backup and migrate module.