Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2024, 08:50 AM   #1
ehbowen
Member
ehbowen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2024
Location: Houston
Device: none
.cng Format (The Complete National Geographic)

About ten years ago I received a copy of The Complete National Geographic on DVD-ROM as a Christmas present. I installed it and referred to it occasionally, but a couple of years back the computer on which I installed it died.

This morning I had occasion to look up a remembered article from 1967. I still had the DVD-ROMs (and I had archived them to my NAS back in the day and still had the disk archives), so I tried to install the package.

It wouldn't install. The package relies on Adobe AIR, which apparently was discontinued back in 2010. Attempts to install it now fail, although I found by dint of much searching that the failure is due to expiration of the signing certificate, and that if you disconnect your computer from the Internet and temporarily set its system clock back to 2010, the package will install. Once installed it will continue operating even after you set your system time back to current. One problem down.

The second, though, is that I'd prefer to access this content on Linux; while I still do have legitimate Windows machines I'm moving away from them and I've decided to forego Win11. While looking around I found a couple of very informative web pages, which I'll link here as well as fair-use-excerpt some of the critical parts:

The Retired Engineer

Quote:
A bit of Googling turned up this very informative page which stated “The cng files are all jpegs, XOR’d bitwise with 239.” and also provided a TCL program to do the necessary conversion back to jpg. I’m not familiar with TCL but writing a C program to do the same thing was relatively trivial and proved that the Nat Geo “encryption” was indeed nothing more than an XOR with 0xEF 🙂
The Retired Engineer also provides a Github link to his script and C program for converting the .cng files. Someone with more technical savvy than I have at present might be able to do something with that, possibly even create a Calibre plugin with that functionality. Just an idea.
ehbowen is offline   Reply With Quote
Old 05-14-2024, 11:10 AM   #2
Quoth
Reading till the spring
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,518
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
More proof that DRM is malicious.

Edit:
First hit on
Linux convert .cng
(I use Duck Duck Go on all Browsers)
https://github.com/laurb9/cng2jpg

No need for a plugin.

Last edited by Quoth; 05-14-2024 at 11:14 AM.
Quoth is offline   Reply With Quote
Old 05-19-2024, 09:43 AM   #3
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,011
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Decoding with ann excel spreadsheet:



[EDIT 13:50] I tried it, the VBA code gave me some errors, don't bother, the python code above worked just fine.

Last edited by PoP; 05-19-2024 at 02:51 PM.
PoP is offline   Reply With Quote
Reply

Tags
cng


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
National Geographic Pacdoc Recipes 7 10-17-2024 04:19 AM
National Geographic Recipes tdonline Recipes 16 09-11-2015 01:39 PM
National Geographic (DE) xXxXxXxXxXx Recipes 0 05-21-2011 09:56 AM
National Geographic Request Oilfieldtrash Recipes 5 11-29-2010 09:35 AM
The Complete National Geographic (released Oct. 30) Syniurge News 38 11-25-2009 12:29 PM


All times are GMT -4. The time now is 08:02 AM.


MobileRead.com is a privately owned, operated and funded community.