Mobi and PRC are the default ebook formats used by the popular MobiPocket.
Now, don’t get me wrong.
It’s a great format and I’ve enjoyed many wonderful books on myWindows Mobiledevice using the MobiPocket reader.
In other words, we’ll show you how to remove drm from MOBI and PRC files.
DISCLAIMER- Stripping the encryption of your ebooksmight be illegalin your country of residence.
Distribution of decrypted ebooksalmost certainly is illegal.
MakeUseOf is not responsible for any legal problems you might face.
Act wisely, or face the consequences personally if you don’t.
With that said, let’s get going.
Downloading Python
These scripts should run onany OS, given you’ve got the right files installed.
After these applications are installed, Python scripts should run flawlessly on Windows, Mac and Linux.
We’re going to need this key if we’re to permanently strip the DRM from the ebook.
If your ebook is hosted on another machine (i.e.
Kindle), simply sync it up with the software before you proceed.
In MobiPocket on your desktop, go toDevices, and you’ll see the PID of said reader inDetails.
Note that a PID is both unit and ebook-specific.
When buying a Mobi ebook online, you’re most often asked for your PID before downloading.
Obviously, this is the PID you’ll need to use.
However, sometimes the process is turned around.
Instead, you’ll first need to transfer the ebook to another equipment (e.g.
Kindle or Windows Mobile) and use that PID.
With me so far?
Removing Encryption
Once we have the right PID, most of the work is already behind us.
We’ll now deploy the scripts to permanently remove the encryption.
For accessibility, it’s advised to put your eBook and the python scripts in the same folder.
First, pop kick open the Terminal or command screen.
InWindows XP, go toStart - Run, typecmdand hit enter.
In Vista, go toStart, typecmdin the search box and hit enter.
The Terminal tool is located in /Applications/Utilities forMac OS X.
And if you’re usingLinux, you’ll probably know the location.
In most distributions, this will also be located atApplications/Utilities.
Next, you navigate to the folder containing your files.
To do this, typecd,followed by the full file path to your folder, and hit enter.
In my case, that’ll make forcd /home/simon/ebook.
If your filepath contains spaces, put single quotes ( ' ) around it.
Now, all you should probably do is launch the script.
Typepython mobidedrm005.py infile.mobi outfile.mobi PIDand hit enter.
If all went well, you’ll now be the proud owner of another,unencryptedversion of your ebook.