blob: 7f22663e65d19562cec5c5d489be49991a69e3a9 (
plain) (
tree)
|
|
// Copyright © 2020 rsiddharth <s@ricketyspace.net>
// SPDX-License-Identifier: ISC
package challenge
import (
"fmt"
"ricketyspace.net/cryptopals/lib"
)
var icebaby string = `Burning 'em, if you ain't quick and nimble
I go crazy when I hear a cymbal`
var key string = "ICE"
func C5() {
es := lib.RepeatingXOR(icebaby, key)
hs := lib.BytesToHexStr([]byte(es))
fmt.Printf("RepeatingXOR('%v', '%v') = %v\n", icebaby, key, hs)
}
|