Skip to content

Commit

Permalink
add recipe hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Oct 30, 2024
1 parent 6209ccd commit c6a704f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipe/sha256.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import hashlib
from pathlib import Path

FILE = Path(__file__).parent / "compas_cra-0.5.0.tar.gz"

with open(FILE, "rb") as f:
data = f.read()
h = hashlib.sha256(data).hexdigest()

print(h)

0 comments on commit c6a704f

Please sign in to comment.