Remove hex encoding, just write binary files.

This commit is contained in:
Ian Gulliver
2015-02-05 17:18:44 +00:00
parent 18715be4b9
commit 524434813c
4 changed files with 3 additions and 19 deletions

View File

@@ -19,8 +19,7 @@ int main(int argc, char *argv[]) {
std::cerr << "Failed to open secret key file" << std::endl;
return 1;
}
secret_key_file << "# Secret key" << std::endl;
secret_key_file << CryptoBase::BinToHex(secret_key) << std::endl;
secret_key_file << secret_key;
}
{
@@ -29,8 +28,7 @@ int main(int argc, char *argv[]) {
std::cerr << "Failed to open public key file" << std::endl;
return 1;
}
public_key_file << "# Public key" << std::endl;
public_key_file << CryptoBase::BinToHex(public_key) << std::endl;
public_key_file << public_key;
}
return 0;