Skip to content

Commit 0ef5b73

Browse files
author
Nipun Ravisara
committed
📦 code refactoring
1 parent 0dc0d11 commit 0ef5b73

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

encipher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import base64
22
import os, shutil
33
import getopt, sys
4-
from modules.logo import *
5-
from modules.colors import colors
4+
from logo import *
5+
from colors import colors
66
from getpass import getpass
77
from cryptography.fernet import Fernet
88
from cryptography.hazmat.primitives import hashes
@@ -73,7 +73,7 @@ def encryptFile():
7373
fileNameList = os.listdir(home_dir + sourse_path)
7474

7575
for file in fileNameList:
76-
if file.endswith(('.png', '.PNG', '.jpg', '.JPG', '.jpeg', 'JPEG', 'txt', 'pdf', 'mp3', 'mp4', 'mkv')):
76+
if file.endswith(('.png', '.PNG', '.jpg', '.JPG', '.jpeg', 'JPEG', 'txt', 'pdf', 'mp3', 'mp4', 'MP4', 'mkv')):
7777
input_file = file
7878
output_file = file + '.enc'
7979
with open(input_file, 'rb') as f:

modules/logo.py renamed to logo.py

File renamed without changes.

0 commit comments

Comments
 (0)