News for hackers. Stuff that matters.
Re:The China GPS shift problem by acqq on Sunday January 24, 2016 @07:57PM (#10964919)
This part of the article explains more:

https://en.wikipedia.org/wiki/Restrictions_on_geographic_dat...

"GCJ-02 (aka Mars Coordinates) is a geodetic datum formulated by the Chinese State Bureau of Surveying and Mapping, and based on WGS-84.[12] It uses an encryption algorithm[13] which adds apparently random offsets to both the latitude and longitude, with the alleged goal of improving national security.[14][15]"

"Despite the secrecy surrounding the GCJ-02 encryption, several open-source projects exist that provide conversions between GCJ-02 and WGS-84, for languages including C#,[20] C, Go, Java, JavaScript, PHP,[21] Python,[22] R,[14] and Ruby.[23][24] They appear to be based on leaked code.[25]"

Re:The China GPS shift problem by ex3ndr on Sunday January 24, 2016 @08:09PM (#10964969)
Interesting that there are actually no encryption at all, just simple math equations.
Re:The China GPS shift problem by chias on Sunday January 24, 2016 @08:58PM (#10965154)
> just simple math equations

To be fair, you could say the exact same thing about any modern encryption scheme.

Re:The China GPS shift problem by GavinMcG on Sunday January 24, 2016 @11:05PM (#10965502)
"Simple" is... debatable. There's a good reason rolling your own is a bad idea.
Re:The China GPS shift problem by teambob on Monday January 25, 2016 @12:15AM (#10965713)
The 'how' of encryption is often quite simple - it is 'why' that is difficult
Re:The China GPS shift problem by reitanqild on Monday January 25, 2016 @05:04AM (#10966394)
Or the other way around?

Example: We all know why we should protect against timing attacks. How to get it right is the harder part.

Re:The China GPS shift problem by nl on Monday January 25, 2016 @07:17AM (#10966738)
No.

Encryption is designed to be irreversible without a specific piece of extra data.

That isn't the same as not knowing the formula or initialization seeds used. Those are both reversible.

Re:The China GPS shift problem by colechristensen on Monday January 25, 2016 @01:16AM (#10965864)
I'm going to assume from the context is what they actually did was use a crypto-grade RNG to introduce bumps into the geoid surface. That is, instead of everything being 2 meters to the west (or whatever) things were randomly offset from their reported positions.

You could "map" the whole thing or somehow steal the source and crypto parameters in order to transform between geoids, but you couldn't do something simple like subtraction.

Re:The China GPS shift problem by acqq on Monday January 25, 2016 @03:00AM (#10966110)
However it was obviously their goal not to have completely random oordinates but just "less precise."
Re:The China GPS shift problem by colechristensen on Monday January 25, 2016 @03:11AM (#10966138)
Not random ordinates, unpredictable offsets, apparently on the order of a kilometer.

And it wasn't precision they were after at all. You could just make a global positioning system arbitrarily less precise but that isn't useful. Kilometer precision doesn't have much use to civilians, they need meter-precision at least and repeatable at that. What they were after was unpredictable but static accuracy offsets which presumably could be altered in a crisis.