Guest User

Untitled

a guest
Dec 7th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include "md5.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7. MD5 md5;
  8. string username;
  9. char password[32];
  10. string converted = md5.digestString(password);
  11.  
  12. while (username != "lewy" || converted != "482c811da5d5b4bc6d497ffa98491e38"){
  13.  
  14. cout << "Enter username: ";
  15. cin >> username;
  16.  
  17. cout << "Enter password: ";
  18. cin >> password;
  19. }
  20. cout << "Welcome: " << username << endl;
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment