geocrypt package

58 views
Skip to first unread message

Dan Kortschak

unread,
Oct 11, 2019, 5:22:58 PM10/11/19
to golang-nuts
Over 10 years ago Gustavo Niemeyer invented the geohash geographic
hashing system https://en.wikipedia.org/wiki/Geohash for clearly and
concisely representing geographic locations at arbitrary precision.

Now, here is geocrypt, a package that returns or checks a cryptographic
hash of a geolocation. The hash is calculated using bcrypt in such a
way that hashing an angular area is approximately time-constant
irrespective of the geohash precision that the location is given.

The intention is for use in confirming locations of items whose
location should not be published, but which must be identifiable by
some participant. Examples of use are digital geocaching competitions,
lowish value eco-conservation sites* etc.

For locations at the equator (fastest case), hashing takes about 2-3
seconds per square meter of precision on my hardware. Interaction
between geocrypt and standard conservation location fuzzing techniques
means that they should probably not used together. As in all cases with
cryptographic protocols, you should assess your threat model, and don't
use packages you find on the internet.

https://godoc.org/github.com/kortschak/geocrypt

* high value conservation sites should not be published

Robert Engels

unread,
Oct 11, 2019, 8:32:00 PM10/11/19
to Dan Kortschak, golang-nuts
Cool stuff!

> On Oct 11, 2019, at 4:22 PM, Dan Kortschak <d...@kortschak.io> wrote:
>
> Over 10 years ago Gustavo Niemeyer invented the geohash geographic
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/181e535f6ab8c1ed2a36913132fe212aeaff03da.camel%40kortschak.io.

Reply all
Reply to author
Forward
0 new messages