Skip to content

Commit

Permalink
Create hash.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 10, 2024
1 parent b782c68 commit 75967f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blockchain_integration/pi_network/pi-stablecoin/utils/hash.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import hashlib

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

0 comments on commit 75967f6

Please sign in to comment.