aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/fpe.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 09:46:53 +0200
committerSimon Warta <[email protected]>2015-06-23 09:46:53 +0200
commit629ae37ebe273332d4b086661b06d8717dfdb937 (patch)
treeadb000640e1de3b4b7ad01bfa050fa38b798acd5 /src/cmd/fpe.cpp
parent43e3c4555c9f2535f18741f3e252b3c93cbbaeca (diff)
Replace \n by std::endl in /src/cmd
to ensure proper flusing
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;
}