Help Finish Code C Reads File Username First Password Second One Function Encrypt Passwor Q37229794

Help finish code in c++

Reads in a file that has a username(first) and apassword(second). One function will encrypt the password using theformula g(m), call the hashfunction to find index and store it intothe list.

.void plaintext insert(string usr, string pass This function takes the plaintext password and the user and will hash the pass

This hash function should return the index to store the key pair. Remember you are doing h(x) here.

All in all we get the following hash function we will use to encrypt our passwords g(m)-m mod 80543327

The hash function is h(x) x mod 23 where x is the decimal representation that the password is hashed to g(m).

CODE:

int

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.