Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "md5.h"
- #include <iostream>
- using namespace std;
- int main(){
- MD5 md5;
- string username;
- char password[32];
- string converted = md5.digestString(password);
- while (username != "lewy" || converted != "482c811da5d5b4bc6d497ffa98491e38"){
- cout << "Enter username: ";
- cin >> username;
- cout << "Enter password: ";
- cin >> password;
- }
- cout << "Welcome: " << username << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment