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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
alongbongsong
Ronin
Ronin
Posts: 3
Joined: 23 Apr 2015, 18:01
Distribution: Porteus
Location: new york

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

Post#1 by alongbongsong » 23 Apr 2015, 18:11

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; https://forum.porteus.org/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.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: How Does One Decrypt an Encrypted Save File?

Post#2 by brokenman » 24 Apr 2015, 01:08

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

alongbongsong
Ronin
Ronin
Posts: 3
Joined: 23 Apr 2015, 18:01
Distribution: Porteus
Location: new york

Re: How Does One Decrypt an Encrypted Save File?

Post#3 by alongbongsong » 24 Apr 2015, 11:29

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.

alongbongsong
Ronin
Ronin
Posts: 3
Joined: 23 Apr 2015, 18:01
Distribution: Porteus
Location: new york

Re: How Does One Decrypt an Encrypted Save File?

Post#4 by alongbongsong » 30 Apr 2015, 15:31

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.

Post Reply