diff --git a/assets/hashify.PNG b/assets/hashify.PNG index 87cc462..662d8cd 100644 Binary files a/assets/hashify.PNG and b/assets/hashify.PNG differ diff --git a/assets/identify_hash.PNG b/assets/identify_hash.PNG index 5c0e8ac..4f360ac 100644 Binary files a/assets/identify_hash.PNG and b/assets/identify_hash.PNG differ diff --git a/assets/snapshots/decry - decrypting test file.PNG b/assets/snapshots/decry - decrypting test file.PNG new file mode 100644 index 0000000..24a7f1c Binary files /dev/null and b/assets/snapshots/decry - decrypting test file.PNG differ diff --git a/assets/snapshots/encry - encrypting test file.PNG b/assets/snapshots/encry - encrypting test file.PNG new file mode 100644 index 0000000..3464046 Binary files /dev/null and b/assets/snapshots/encry - encrypting test file.PNG differ diff --git a/assets/snapshots/hashify.PNG b/assets/snapshots/hashify.PNG new file mode 100644 index 0000000..662d8cd Binary files /dev/null and b/assets/snapshots/hashify.PNG differ diff --git a/assets/snapshots/identify hash.PNG b/assets/snapshots/identify hash.PNG new file mode 100644 index 0000000..4f360ac Binary files /dev/null and b/assets/snapshots/identify hash.PNG differ diff --git a/assets/snapshots/main menu.PNG b/assets/snapshots/main menu.PNG new file mode 100644 index 0000000..242be35 Binary files /dev/null and b/assets/snapshots/main menu.PNG differ diff --git a/assets/snapshots/test1 after enc.PNG b/assets/snapshots/test1 after enc.PNG new file mode 100644 index 0000000..74e0326 Binary files /dev/null and b/assets/snapshots/test1 after enc.PNG differ diff --git a/assets/snapshots/test1 before enc.PNG b/assets/snapshots/test1 before enc.PNG new file mode 100644 index 0000000..872d73b Binary files /dev/null and b/assets/snapshots/test1 before enc.PNG differ diff --git a/main py/FKeys/test1.txt_file.key b/main py/FKeys/test1.txt_file.key index fb5877e..421a8c9 100644 --- a/main py/FKeys/test1.txt_file.key +++ b/main py/FKeys/test1.txt_file.key @@ -1 +1 @@ -kDiRqIL9-0dJhJIwaKytEwptsKjro3oZ4Rp9wOe9vB8= \ No newline at end of file +vtVEf-f8FK0oJoc0yhDoqEWpeKP2WFthjdvcYNGL3z4= \ No newline at end of file diff --git a/main py/Fdecry.py b/main py/Fdecry.py index 73aecca..87fd088 100644 --- a/main py/Fdecry.py +++ b/main py/Fdecry.py @@ -10,6 +10,7 @@ import os import sys from cryptography.fernet import Fernet +import time def logo(): print("""\n @@ -37,6 +38,7 @@ def load_key(key_path=None, file_path=None): return key_file.read() else: print("No key found in the default folder. Please provide the key or path of the key.") + time.sleep(3) sys.exit(1) def decrypt_file(encrypted_file_path, key): @@ -68,6 +70,7 @@ def Fdecry(): if not os.path.exists(path): print("Error: The provided path does not exist.") + time.sleep(3) sys.exit(1) key_input = input("Enter the path of the key file or leave blank to use default key folder: ") @@ -81,16 +84,21 @@ def Fdecry(): with open(decrypted_file_path, 'wb') as decrypted_file: decrypted_file.write(decrypted_data) - print("Decryption completed.") + for remaining in range(3, 0, -1): + print(f"\033[96mDecryption completed\033[0m. Returning in \033[96m{remaining}...\033[0m", end="\r") + time.sleep(1) # Wait for 1 second # Delete the encrypted file after successful decryption os.remove(path) elif os.path.isdir(path): # Decrypt folder decrypt_folder(path, key) - print("Folder decryption completed.") + for remaining in range(3, 0, -1): + print(f"\033[96mDecryption completed\033[0m. Returning in \033[96m{remaining}...\033[0m", end="\r") + time.sleep(1) # Wait for 1 second else: print("Error: The provided path is neither a file nor a directory.") + time.sleep(3) sys.exit(1) # if __name__ == "__main__": diff --git a/main py/Fencry.py b/main py/Fencry.py index 911c661..f09a49a 100644 --- a/main py/Fencry.py +++ b/main py/Fencry.py @@ -10,6 +10,7 @@ import os import sys from cryptography.fernet import Fernet +import time def logo(): print("""\n @@ -103,7 +104,9 @@ def Fencry(): print("Error: The provided path is neither a file nor a directory.") sys.exit(1) - print("Encryption completed.") + for remaining in range(3, 0, -1): + print(f"\033[91mEncryption completed\033[0m. Returning in \033[96m{remaining}...\033[0m", end="\r") + time.sleep(1) # Wait for 1 second # if __name__ == "__main__": # main() diff --git a/testing/test1.txt b/testing/test1.txt deleted file mode 100644 index 23ab629..0000000 --- a/testing/test1.txt +++ /dev/null @@ -1,5 +0,0 @@ -C++ is a statically-typed, compiled language. It is often used for systems programming and is known for its efficiency. -The standard library is extensive and provides a lot of functionality out of the box. -The language is known for its compile-time evaluation features, which can be used to optimize code. -The C++ standard library is very large and has a lot of functionality that is not always used. -The C++ community is very active and there are many resources available for learning the language. diff --git a/testing/test1.txt.enc b/testing/test1.txt.enc new file mode 100644 index 0000000..2a5e163 --- /dev/null +++ b/testing/test1.txt.enc @@ -0,0 +1 @@ +gAAAAABmUfmdTj2CKuPH9tjy7aGWk5eFkDRg_QFR3i-2w70yVOucL8BRRum5gEDpYII7w2HE7Owgm99dXlM5D4c6gxoEAgUJiAZh0Kvbngo6LiYyPo-Om9U-yBb6ZSXdZYjPmMP08hGP8md0HxENOba-7q1IEmCubd2iR8-9MCWxcU4g7ANGklmQpQNzWL5igcMXu0B4Ajg_0mnk7j8WUTI9hnKzaewXIVarzoQLuGAsQm8Twvgd1DMpDvgohqE2UWYfZZuIAKCe7ZoD9o1SlZKvHVc9rsvIqMvrzMWwg25D4rum3_fOsXxWkJ0GW4CacdXAZ5yhJpbvwcVrJFTgKJUTIFb7hfbjRwmw6NAwhu9CXHc9USPiGOu5IlEJo6u9GjVBSr7xit-e3taPtvxHs5tpjXHYtfHlpoeogQ9twq1lClU7GAfzGFjMei4N5wPORUAquI8IlPcuVkpTmXTmEZEhQIJBR1XVQluffwhnS0SkehX_ADlFFka1mbL4VP2PzoQx_w-qQZ1G60JG4k2HYumcPxDj79ZDE_hcObBqhrGGMXtAJSi7x1LYu2zVEz6G3Wa1TmEbXBgCbCvEWYVkZo_w8B8B53WZ-plMDFd3_EIXf6naEo_27LUCbVCDUnzPk_0Z-cLI3W3208BrUTRzDk51WVoNF3iiojiM5K9bPl423yK29_kDTVensUJbWVPUsUuxCik4kta1HjHFeXaxM-bpt1tpFkPP-PcEIt9mkQP-1oJMAlgyOKE= \ No newline at end of file