summaryrefslogblamecommitdiffstats
path: root/challenge/c05.go
blob: 96f0893a317fafdb2ef74a5d98e8f96e3abe0e84 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                
                                      


                                                                       
// 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.AsciiStrToHexStr(es)

	fmt.Printf("RepeatingXOR('%v', '%v') = %v\n", icebaby, key, hs)
}