diff --git a/sheet01/a2/b-sha2.txt b/sheet01/a2/b-sha2.txt index 1a02e2d..d98fd07 100644 Binary files a/sheet01/a2/b-sha2.txt and b/sheet01/a2/b-sha2.txt differ 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