diff options
author | rsiddharth <s@ricketyspace.net> | 2020-08-29 11:02:13 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-08-29 11:02:13 -0400 |
commit | b25b40ed05605e366f1d9410855ce36a01de8d4e (patch) | |
tree | 3bd3f1773c2003a51d35f7f1749ac0b4205edf56 /challenge/c01.go | |
parent | b1ea1c8104383b6be80f011571d2091541246ef2 (diff) |
challenge/c1.go -> challenge/c01.go
Diffstat (limited to 'challenge/c01.go')
-rw-r--r-- | challenge/c01.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/challenge/c01.go b/challenge/c01.go new file mode 100644 index 0000000..b7f5a4d --- /dev/null +++ b/challenge/c01.go @@ -0,0 +1,16 @@ +// Copyright © 2020 rsiddharth <s@ricketyspace.net> +// SPDX-License-Identifier: ISC + +package challenge + +import ( + "fmt" + "ricketyspace.net/cryptopals/enc" +) + +func C1() { + hex := "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" + b64 := enc.HexToBase64(hex) + + fmt.Printf("b64(0x%v) = %v\n", hex, b64) +} |