aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/fpe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/fpe.cpp')
-rw-r--r--src/cmd/fpe.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/fpe.cpp b/src/cmd/fpe.cpp
index fc60fe099..579586eaf 100644
--- a/src/cmd/fpe.cpp
+++ b/src/cmd/fpe.cpp
@@ -111,7 +111,7 @@ int fpe(int argc, char* argv[])
{
if(argc != 4)
{
- std::cout << "Usage: " << argv[0] << " cc-number acct-name passwd\n";
+ std::cout << "Usage: " << argv[0] << " cc-number acct-name passwd" << std::endl;
return 1;
}
@@ -120,7 +120,7 @@ int fpe(int argc, char* argv[])
std::string passwd = argv[3];
std::cout << "Input was: " << cc_number << ' '
- << luhn_check(cc_number) << '\n';
+ << luhn_check(cc_number) << std::endl;
/*
* In practice something like PBKDF2 with a salt and high iteration
@@ -131,16 +131,16 @@ int fpe(int argc, char* argv[])
u64bit enc_cc = encrypt_cc_number(cc_number, key, acct_name);
std::cout << "Encrypted: " << enc_cc
- << ' ' << luhn_check(enc_cc) << '\n';
+ << ' ' << luhn_check(enc_cc) << std::endl;
u64bit dec_cc = decrypt_cc_number(enc_cc, key, acct_name);
std::cout << "Decrypted: " << dec_cc
- << ' ' << luhn_check(dec_cc) << '\n';
+ << ' ' << luhn_check(dec_cc) << std::endl;
if(dec_cc != cc_number)
{
- std::cout << "Something went wrong :( Bad CC checksum?\n";
+ std::cout << "Something went wrong :( Bad CC checksum?" << std::endl;
return 2;
}