adding internal crypto pkg
This commit is contained in:
parent
7b619f0fcf
commit
27e964549f
@ -1,7 +1,13 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"git.keegandeppe.com/kdeppe/adonis/internal/crypto"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("adonis")
|
fmt.Println("adonis")
|
||||||
|
crypto.test()
|
||||||
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
11
internal/crypto/crypto.go
Normal file
11
internal/crypto/crypto.go
Normal file
@ -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))
|
||||||
|
}
|
7
readme
7
readme
@ -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
|
|
||||||
|
|
11
readme.md
Normal file
11
readme.md
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user