attempting to fix autoformat build error

This commit is contained in:
dilanbhalla
2020-08-11 01:07:53 -07:00
parent 4433f193f9
commit 2ee654d643

View File

@@ -1,26 +1,26 @@
package main
import (
"crypto/des"
"crypto/md5"
"fmt"
)
func main() {
password := []byte("password")
var tripleDESKey []byte
tripleDESKey = append(tripleDESKey, password[:16]...)
tripleDESKey = append(tripleDESKey, password[:8]...)
// BAD, des is a weak crypto algorithm
_, err := des.NewTripleDESCipher(tripleDESKey)
if err != nil {
panic(err)
}
// BAD, md5 is a weak crypto algorithm
fmt.Printf("%x", md5.Sum(password))
}
package main
import (
"crypto/des"
"crypto/md5"
"fmt"
)
func main() {
password := []byte("password")
var tripleDESKey []byte
tripleDESKey = append(tripleDESKey, password[:16]...)
tripleDESKey = append(tripleDESKey, password[:8]...)
// BAD, des is a weak crypto algorithm
_, err := des.NewTripleDESCipher(tripleDESKey)
if err != nil {
panic(err)
}
// BAD, md5 is a weak crypto algorithm
fmt.Printf("%x", md5.Sum(password))
}