package complexity // log2(10year × (1trillion/s)) const passwordMinEntropy = 68.096549 func StrongPasswordBytes(password []byte) bool { entropy, _ := Bytes(password) return entropy > passwordMinEntropy } func StrongPassword(password string) bool { entropy, _ := String(password) return entropy > passwordMinEntropy }