Preparing to private keys encoding/decoding