summaryrefslogtreecommitdiffstats
path: root/challenge/c02.go
blob: 27a24377d0fc6816316c64d490ed166788920863 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright © 2021 siddharth ravikumar <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package challenge

import (
	"fmt"

	"ricketyspace.net/cryptopals/lib"
)

func C2() {
	a := "1c0111001f010100061a024b53535009181c"
	b := "686974207468652062756c6c277320657965"
	c := lib.FixedXOR(a, b)
	fmt.Printf("XOR(%v ^ %v) = %v\n", a, b, c)
}

// Output:
//
// XOR(1c0111001f010100061a024b53535009181c ^ 686974207468652062756c6c277320657965) = 746865206b696420646f6e277420706c6179