Preliminary port of private key reading/decoding.