summaryrefslogblamecommitdiffstats
path: root/challenge/c01.go
blob: e0e9e029e8b7384a3d2b43fec448eeda0323dee5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   

                               
                 


             
 
                                         

 
           
                                                                                                                 
                                   

                                                



                                                                                                                                                                             
// Copyright © 2021 siddharth <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package challenge

import (
	"fmt"

	"ricketyspace.net/cryptopals/lib"
)

func C1() {
	hex := "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
	b64 := lib.HexToBase64(hex)
	fmt.Printf("b64(0x%v) = %v\n", hex, b64)
}

// Output:
//
// b64(0x49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d) = SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t