HomeBadges
Blog Author Picture

Lane Wagner

272 followers

Bitcoiner, engineer, libertarian, atheist, and founder of http://qvault.io

I write about cryptography and computer science, usually in a Go or Javascript implementation format.

Use Anonymous Structs For JSON Marshalling in Go

Nov 18, 20204 min read

Go is a language built for the web. The Go standard library comes with everything we need to stand up a production web server. Today we are going to explore marshaling JSON using anonymous structs. Anonymous structs can help keep API handlers clean a...

Announcing Go-TinyTime, Go-TinyDate’s Sister Package

Nov 13, 20202 min read

time.Time is the perfect choice for most cases, it even comes in the standard library! The problem is that the time.Time{} struct uses more than 24 bytes of memory under most conditions. Go-TinyTime solves this problem by restricting the available da...

(Very) Basic Intro To White-Box Cryptography

Nov 11, 20203 min read

White-box cryptography combines methods of encryption and obfuscation to embed secret keys within application code. The goal is to combine code and keys in such a way that the two are indistinguishable to an attacker, and the new “white-box” program ...

Connecting To RabbitMQ In Golang

Oct 14, 20205 min read

RabbitMQ is a message broker that’s great for pub-sub systems in a micro-services architecture. At my current day job, we use RabbitMQ in our data ingest pipeline. All the services are written in Go, and they all push data through hundreds of RabbitM...

Range Over Ticker In Go With Immediate First Tick

Oct 1, 20202 min read

The Go standard library has a really cool type – Ticker. Tickers are used when you want to do something at a regular interval, similar to JavaScript’s setInterval. Here’s an example: package main import ( "fmt" "time" ) func main() { ti...

Achieving Data Integrity Using Cryptography

Sep 24, 20203 min read

The post Achieving Data Integrity Using Cryptography appeared first on Qvault. Data integrity refers to the accuracy, legitimacy, and consistency of information in a system. When a message is sent, particularly using an untrusted medium, data integri...

© 2021 Qvault

PrivacyTerms
Proudly part of