Protecting private keys in Go

Today I was looking at Upspin and thinking about private keys. I asked myself, “what would it take to make sure that there was one single copy of the private key in RAM, and that Go and the OS worked together to make sure it never went onto disk?” (Some other people have talked about…

My first ever Rust program!

Here, for posterity, is my first ever Rust program. It checks the key log on the Upspin Key Server. extern crate sha2; extern crate reqwest; use std::io::Read; use sha2::{Sha256, Digest}; fn main() { let mut resp = match reqwest::get("https://key.upspin.io/log") { Ok(resp) => resp, Err(e) => panic!(e), }; assert!(resp.status().is_success()); let mut content = String::new(); match resp.read_to_string(&mut…

Read it and weep

I searched for “how do I make an HTTP request in Rust?”. I’m a newbie, we do things like that. Don’t judge. I found this. I still don’t know how, because the answer marked correct refers to a library that a comment from 2016 informs me is no longer supported. There’s also a helpful comment…

A Go programmer continues to learn Rust

I went looking for the equivalent of goimports and didn’t find it. Sad. I wanted to use std::fmt to do the same thing as sprintf or fmt.Sprintf. I got stuck on “expected &str, found struct `std::string::String`”. I found a blog posting trying to explain it but I don’t understand enough yet to understand it. What…

A Go programmer’s first day with Rust

Where is the tutorial? The first Google hit gives a redirect to a page explaining that I should read the book. The first page of the book explains that I should read the Second Edition unless I want to go deep, then I should later read the First Edition also (and presumably ignore the things…

Job Searching

I’m looking for a job that will help me reduce my commute, and get the chance to touch new fascinating things. Here’s a post from last time I was looking for a job, which shows some work samples I am proud of. If any of my readers can hook me up with interesting job postings,…

“ssh server mkdir” on Windows

How to use WinRM to connect from Linux to Windows and make a directory. Warning, may make your eyes bleed! In fact, the WinRM stuff is not completely insane, but the PowerShell syntax the guy chose for how to make a directory is pretty ridiculous.