Add Go version.

The Go version of the code can cope with encrypted private keys.