Crate givme[][src]

Structs

Used as a wrapper for data from/to Database

Enums

Functions

As a security measure and shortcommings of encryption algorithms. We need to adjust password to some specified length. This is done by repeating password couple of times.

Authenticate User by verifying user entered password with decrypted password.

Ask for value and info to construct Credentials

Decrypt given data with randomly generated string and user’s master key. 2 algorithms are used TwoFish and TrippleDES.

Encrypt given data with randomly generated string and user’s master key. 2 Encryption algorithms are used TwoFish and TrippleDES.

Retreive Data from Sqlite Database by querying given key

Checks for current OS and user. Populate in provided GivMe struct

Open new Sql Connection to file and populate it in GivMe Struct.

A sort of wrapper to get_from_sql(). This function take care of all encryption and decryption needed to retreive data from Sqlite.

Check if our database file exist. If not, then this is our first run.

Ask user to set master password. Encrypt it and save it to Sqlite.

Save credentails to Sqlite. Somewhat like a wrapper to save_to_sql() but this take care of all encryption and decryption to save anything to database.

Saves data to Sqlite database

SetUp Sqlite Database. Like create new Database file and Create new table in newly created Database file

Prints Credential struct to a user. Mainly used to print Credential from user’s query. Not for debugging.