Add ability to encode a crypto key as a JWK