-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
36 lines (30 loc) · 963 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//main.cpp
#include <iostream>
#include <string>
#include <cstdlib>
#include "Node.h"
#include "Account.h"
#include "Admin.h"
#include "Hash.h"
int main(){
Hash h = Hash();
std::cout << h.hashFunction("dlay", 12345, "password") << std::endl;
std::cout << h.hashFunction("ajharris", 42345, "password") << std::endl;
std::cout << h.hashFunction("dlay", 12345, "Password") << std::endl;
std::cout << h.hashFunction("dlay", 12345, "drowssap") << std::endl;
std::cout << h.hashFunction("ajharris", 0x4f23ac, "GlitterCritter") << std::endl;
/* Node a;
Node b;
b = Node("Node B", NULL);
a = Node("Node A", &b);
std::cout << a.getPayload() << std::endl;
std::cout << a.getNext()->getPayload() << std::endl;
std::srand(434);
Account a = Account("userA");
Account b = Account("userB");
std::cout << a.getSalt() << std::endl;
std::cout << b.getSalt() << std::endl;
Admin g = Admin("Donovan Lay");
std::cout << g.getUsername() << std::endl;
*/
}