Skip to content

Commit

Permalink
Create utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored May 11, 2024
1 parent f2a71af commit aea66a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# utils/utils.py
import hashlib

def hash_data(data):
return hashlib.sha256(data.encode()).hexdigest()

0 comments on commit aea66a7

Please sign in to comment.