Crate givme Copy item path Source Credentials Used as a wrapper for data from/to Database DEBUG GivMe OperatingSystem BANNER adjust_password_length 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. already_exist_in_sql Checks if value already exist in Sqlite ask_pass_and_extract_key Authenticate User by verifying user entered password
with decrypted password. ask_user_for_value Ask for value and info to construct Credentials
debug Print debug messages decrypt Decrypt given data with randomly generated string and
user’s master key. 2 algorithms are used
TwoFish and TrippleDES. decrypt_file Encrypt a file with 2 step decryption. File should be encrypted
on same computer on which it needs to decrypted. del_from_sql Deletes data to Sqlite database delete_credentails encrypt Encrypt given data with randomly generated string and
user’s master key. 2 Encryption algorithms are used
TwoFish and 3DES. encrypt_file Encrypt a file with 2 step encryption. File can be decrypted
on same computer on which it was encrypted. get_from_sql Retreive Data from Sqlite Database by querying given key get_os_and_username Checks for current OS and user. Populate in provided
GivMe
struct get_secret_key Retrieve secret key from the database
This key is used in encryption process with one encryption standard and
another key will be given by user get_sql_con Open new Sql Connection to file and populate it in
GivMe
Struct. give_credentials A sort of wrapper to get_from_sql()
. This function take
care of all encryption and decryption needed to retreive
data from Sqlite. is_first_run Check if our database file exist. If not, then
this is our first run. parse_args run_setup Ask user to set master password. Encrypt it and save it to Sqlite. save_credentials 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. save_to_sql Saves data to Sqlite database set_secret_key Store / replace secret key to the database setup_sql SetUp Sqlite Database. Like create new Database file and Create
new table in newly created Database file show_credentials Prints Credential struct to a user. Mainly used to
print Credential from user’s query. Not for debugging.