compare SHA256 digests of "x" and "X"



👍 go run sha256.go          
x: [1111000]
X: [1011000]
2d711642b726b04401627ca9fbac32f5c8530fb1903cc4db02258717921a4881
4b68ab3847feda7d6c62c1fbcbeebfa35eab7351ed5e78f4ddadea5df64b8015
false
[32]uint8
👍 cat sha256.go 
package main
import (
  "crypto/sha256"
  "fmt"
)
func main() {
  fmt.Printf("x: %b\n", []byte("x"))
  fmt.Printf("X: %b\n", []byte("X"))
  c1 := sha256.Sum256([]byte("x"))
  c2 := sha256.Sum256([]byte("X"))
  fmt.Printf("%x\n%x\n%t\n%T\n", 
    c1, c2, c1 == c2, c1)
}

    

ch 1.3 Finding Duplicate Lines p27/8 of