Skip to content

Commit ad3b5dc

Browse files
Added use case to readme
1 parent fcd8242 commit ad3b5dc

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

Hashing file/app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def write_content(hashed_content):
3636
new_file=open('Hased data.txt','w')
3737
new_file.write(hashed_content)
3838
new_file.close()
39-
40-
41-
39+
print("Done writing data to file hash data.txt")
4240

4341
if __name__ == "__main__":
4442
help()

Hashing file/readme.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,19 @@ Hashing a file is a python script which takes data from a text file and hash it
77
* SHA512
88

99

10-
It will store all the hashed data into a new text file called as **Hased data.txt**
10+
It will store all the hashed data into a new text file called as **Hased data.txt**
11+
12+
### Installing required libraries
13+
14+
`` pip install -r"requirements.txt" ``
15+
16+
17+
### Using script
18+
19+
* `` python app.py <name of the file to hash> ``
20+
21+
* Script will display avaliable hasing methods
22+
23+
* Enter hashing algorithm that you want to hash
24+
25+
* A file with name hash data.txt with hashed content will be saved in same directory

0 commit comments

Comments
 (0)