Page 1 of 1

How Does One Decrypt an Encrypted Save File? [SOLVED]

Posted: 23 Apr 2015, 18:11
by alongbongsong
First off, let me say that I'm loving this distro. I was using Slax for years on flash drives, but it was really beginning to show its age in the past few months. A buddy introduced me to Porteus and I haven't looked back. I use it at work, on shared computers when I'm travelling, and even have a few of the students where I teach using it both in and out of the classroom. Many thanks for this great distro!

Now, onto the question. I have an encrypted save file that I use on my own flash drive. It works great. The problem is, I'd like to decrypt it and transfer it over to another drive for a student (to save me 2 or 3 hours of configuring his setup from scratch). I've tried the advice here; viewtopic.php?f=81&t=1840

Code: Select all

openssl aes-256-cbc -d -in /path/to/encrypted.dat -out /path/to/decrypted.dat
with no luck. It always returns 'bad magic number'. I know that I'm not entering the wrong password, because I can boot into my install with the encrypted save file just fine. I've also tried decrypting the file via the Porteus Settings Center, but it also tells me that the password is incorrect. How can I resolve this?

Many thanks in advance.

Re: How Does One Decrypt an Encrypted Save File?

Posted: 24 Apr 2015, 01:08
by brokenman
Glad you are enjoying Porteus! Welcome aboard.

This process has been simplified. Open a root console and type: mloop /path/to/my/porteussave.dat
You should be prompted for your passphrase and your module will be mounted at: /mnt/loop

Re: How Does One Decrypt an Encrypted Save File?

Posted: 24 Apr 2015, 11:29
by alongbongsong
Thanks for the help! I'm going to try that out at work in a couple of hours. Will let you know if all fares well.

Re: How Does One Decrypt an Encrypted Save File?

Posted: 30 Apr 2015, 15:31
by alongbongsong
brokenman wrote:Glad you are enjoying Porteus! Welcome aboard.

This process has been simplified. Open a root console and type: mloop /path/to/my/porteussave.dat
You should be prompted for your passphrase and your module will be mounted at: /mnt/loop
Sorry for the delayed response, but mloop did the trick. It's a little strange to mount one save file, then mount another, and copy the contents of the former to the latter, but it does seem to work. Many thanks! This is by far the best portable distro available. I've been recommending it to fellow "tech workers" and enthusiasts for months now. It's great to have something as convenient as Slax, but actively developed, with the trappings of a full-fledged desktop distro, and the USM is a godsend.