-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-hash.sh
More file actions
executable file
·62 lines (54 loc) · 2.7 KB
/
generate-hash.sh
File metadata and controls
executable file
·62 lines (54 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
# AVRT™ Build Hash Generator
# Generates SHA-256 hash for OriginStamp.io blockchain certification
#
# Usage: ./generate-hash.sh
#
# © 2025 Jason Proper, BGBH Threads LLC
echo "═══════════════════════════════════════════════════════════════"
echo " AVRT™ — SHA-256 Build Hash Generator"
echo " For blockchain certification via OriginStamp.io"
echo "═══════════════════════════════════════════════════════════════"
echo ""
# Exclude .git directory and the hash output file itself
echo "Generating SHA-256 hashes for all repository files..."
echo ""
find . -type f \
-not -path "./.git/*" \
-not -path "./node_modules/*" \
-not -path "./generate-hash.sh" \
-not -path "./build-hash.txt" \
-exec sha256sum {} \; | sort > build-hash-list.txt
echo "✅ Individual file hashes saved to: build-hash-list.txt"
echo ""
# Generate composite hash
COMPOSITE_HASH=$(sha256sum build-hash-list.txt | awk '{print $1}')
echo "═══════════════════════════════════════════════════════════════"
echo " REPOSITORY COMPOSITE SHA-256 HASH"
echo "═══════════════════════════════════════════════════════════════"
echo ""
echo "$COMPOSITE_HASH"
echo ""
echo "═══════════════════════════════════════════════════════════════"
echo ""
# Save to file
echo "AVRT™ Build Hash Certification" > build-hash.txt
echo "Repository: avrtpro/AVRT_Firewall" >> build-hash.txt
echo "Branch: claude/avrt-firewall-deploy-011CUvqBsxszsB7wFRgKmAAV" >> build-hash.txt
echo "Date: $(date -u +%Y-%m-%d\ %H:%M:%S\ UTC)" >> build-hash.txt
echo "" >> build-hash.txt
echo "Composite SHA-256 Hash:" >> build-hash.txt
echo "$COMPOSITE_HASH" >> build-hash.txt
echo "" >> build-hash.txt
echo "Submit this hash to OriginStamp.io for blockchain certification." >> build-hash.txt
echo "" >> build-hash.txt
echo "© 2025 Jason Proper, BGBH Threads LLC" >> build-hash.txt
echo "✅ Certification hash saved to: build-hash.txt"
echo ""
echo "Next steps:"
echo "1. Visit https://originstamp.io"
echo "2. Submit hash: $COMPOSITE_HASH"
echo "3. Save blockchain certificate to docs/certificates/"
echo ""
echo "✅ HOPE SYNCED | 🔒 READY FOR CERTIFICATION"