From 4464bf55a93a7767c338a39b829e019030c7f02e Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 23 Apr 2026 12:19:26 +0200 Subject: [PATCH] feat: use cksum for sha2+3 hash --- sheet01/a2/b-sha2.txt | Bin 168 -> 90 bytes sheet01/a2/b-sha3.txt | 1 + sheet01/a2/b.txt | 6 ++++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sheet01/a2/b-sha2.txt b/sheet01/a2/b-sha2.txt index 1a02e2dcf6ec97119c2efcf5d3d604576ef9450b..d98fd07b65ac7f2a52b31d180302749205cf67e3 100644 GIT binary patch literal 90 zcmV~$Ar62r3;;mSD<;7ZXxDBP2ppalbX}K_5Q3QC`P`ky4#Z)6Z@r%GU!VKer?3T~ nhT6PhN)*eY>b4lA;>v(o7}mz-pdivXmK;T`Mr2wYnX?T)!Oa<- literal 168 zcmXwzOA3H63`A!wcn6PQ{j}Cytrf4~&b{|nUjzx03@;z@+_fs1b{)EOs?m(1Ms4bq z$VDqI5TgbyYM}|5aTyk11>)5)H?eEZvFYg-d_s{hVizWIgk~-e?0Bv?Ce3-e`TOYq G%<2nDqZ2Ct diff --git a/sheet01/a2/b-sha3.txt b/sheet01/a2/b-sha3.txt index e69de29..836e93e 100644 --- a/sheet01/a2/b-sha3.txt +++ b/sheet01/a2/b-sha3.txt @@ -0,0 +1 @@ +SHA3-256 (plaintext.txt) = 8cdcfd9d0414adbba1bb146c214e181d7e5d7c8edde90b79dcb27df005fcc298 diff --git a/sheet01/a2/b.txt b/sheet01/a2/b.txt index 5b2c124..e2c1575 100644 --- a/sheet01/a2/b.txt +++ b/sheet01/a2/b.txt @@ -1,2 +1,4 @@ -plaintext.txt -Algorithm SHA256 -reads the plaintext file and calculates a unique hash string using the SHA-256 cryptographic algorithm. \ No newline at end of file +cksum -a sha2 --length 256 plaintext.txt > b-sha2.txt +reads the plaintext file and calculates a unique hash string using the SHA2-256 cryptographic algorithm and writes it into b-sha2.txt +cksum -a sha3 --length 256 plaintext.txt > b-sha3.txt +reads the plaintext file and calculates a unique hash string using the SHA3-256 cryptographic algorithm and writes it into b-sha3.txt \ No newline at end of file