Skip to content

Instantly share code, notes, and snippets.

Eric Anderson ewa

Block or report user

Report or block ewa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ewa /
Created Jan 26, 2016
Cleanly handling encrypted data in protocol buffers or similar

Cleanly handling encrypted data in protocol buffers or similar

Posted on Stack Overflow here.

Is anyone aware of a library / wrapper for working with encrypted and/or signed data in protobufs (or other similar message description & serialization tools)?

I keep finding myself dealing with messages where all or part of the message is encrypted, like so:

public class LocationDef {
/** A "true" coordinate reference system for absolute positions on Earth.
* User-supplied relativeTo origin coordinates are converted into this
* system in the course of building a local coordinate system. It is not
* necessarily used again.
protected static final GeographicCRS referenceAbsolute2D = DefaultGeographicCRS.WGS84;
protected static final GeographicCRS referenceAbsolute3D = DefaultGeographicCRS.WGS84_3D;
ewa / pgp-merge-drv
Created Apr 24, 2012
Git merge driver to decrypt (and re-encrypt) files before merging.
View pgp-merge-drv
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ewa / ath9k_5GHz.patch
Created Apr 19, 2012
More permissive regd settings for ath9k. Use with caution and know your local regulations!
View ath9k_5GHz.patch
diff --git a/linux-lts-backport-oneiric-3.0.0/drivers/net/wireless/ath/regd.c b/linux-lts-backport-oneiric-3.0.0/drivers/net/wireless/ath/regd.c
index 028310f..23fd937 100644
--- a/linux-lts-backport-oneiric-3.0.0/drivers/net/wireless/ath/regd.c
+++ b/linux-lts-backport-oneiric-3.0.0/drivers/net/wireless/ath/regd.c
@@ -37,12 +37,9 @@
/* We allow IBSS on these on a case by case basis by regulatory domain */
-#define ATH9K_5GHZ_5150_5350 REG_RULE(5150-10, 5350+10, 40, 0, 30,\
You can’t perform that action at this time.