Skip to content

Commit

Permalink
add the hash script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Feb 1, 2024
1 parent abdcfb4 commit 5479bc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,6 @@ scripts/.idea/**
generated

*.3dm

recipe/**
!recipe/sha256.py
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_cgal-0.6.0.tar.gz"

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

print(h)

0 comments on commit 5479bc6

Please sign in to comment.