From fb3468f0e9b531352ac9f1b97817b52a0b579ce4 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 29 Aug 2020 10:46:54 -0400 Subject: c1.go -> challenge/c1.go --- c1.go | 16 ---------------- challenge/c1.go | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 c1.go create mode 100644 challenge/c1.go diff --git a/c1.go b/c1.go deleted file mode 100644 index a87d05d..0000000 --- a/c1.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © 2020 rsiddharth -// SPDX-License-Identifier: ISC - -package main - -import ( - "fmt" - "ricketyspace.net/cryptopals/enc" -) - -func main() { - hex := "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" - b64 := enc.HexToBase64(hex) - - fmt.Printf("b64(0x%v) = %v\n", hex, b64) -} diff --git a/challenge/c1.go b/challenge/c1.go new file mode 100644 index 0000000..b7f5a4d --- /dev/null +++ b/challenge/c1.go @@ -0,0 +1,16 @@ +// Copyright © 2020 rsiddharth +// 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) +} -- cgit v1.2.3