From 27e964549f621e7730f8141a66ef59353f3edd09 Mon Sep 17 00:00:00 2001 From: spinach Date: Thu, 7 Nov 2024 17:23:50 -0500 Subject: [PATCH] adding internal crypto pkg --- cmd/adonis/main.go | 8 +++++++- internal/crypto/crypto.go | 11 +++++++++++ readme | 7 ------- readme.md | 11 +++++++++++ 4 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 internal/crypto/crypto.go delete mode 100644 readme create mode 100644 readme.md diff --git a/cmd/adonis/main.go b/cmd/adonis/main.go index 7321f0a..2a7a4ea 100644 --- a/cmd/adonis/main.go +++ b/cmd/adonis/main.go @@ -1,7 +1,13 @@ package main -import "fmt" +import ( + "fmt" + "git.keegandeppe.com/kdeppe/adonis/internal/crypto" + "os" +) func main() { fmt.Println("adonis") + crypto.test() + os.Exit(0) } diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go new file mode 100644 index 0000000..b8b482f --- /dev/null +++ b/internal/crypto/crypto.go @@ -0,0 +1,11 @@ +package crypto + +import "crypto/bcrypt" + +func test() { + hash, err := bcrypt.GenerateFromPassword(pwd, bcrypt.DefaultCost) + if err != nil { + panic(err) + } + fmt.Println(string(hash)) +} diff --git a/readme b/readme deleted file mode 100644 index 74b4630..0000000 --- a/readme +++ /dev/null @@ -1,7 +0,0 @@ -# Adonis - -## Goals - -- Workout app with a focus on simplicity and extensibility -- Ship a barebones set of features with clear vision for add-ons - diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..804235e --- /dev/null +++ b/readme.md @@ -0,0 +1,11 @@ +# Adonis + +## Goals + +Workout app with a focus on simplicity and extensibility + +## Design + +- Want to be more dynamic to allow for future insights to shape program design + - Avoid strict periodization, instead allow for planning as a user sees fit +- To accomplish this important to keep workout design as flexible as possible -> any time, multiple per day, etc.