1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@
|
||||
/* |
||||
------------------------------------------------------------------------------------------------------------------------ |
||||
####### crypto ####### Copyright (c) 2021 mls-361 ################################################## MIT License ####### |
||||
------------------------------------------------------------------------------------------------------------------------ |
||||
*/ |
||||
|
||||
package crypto |
||||
|
||||
import ( |
||||
"forge.chapril.org/mls-361/crypto" |
||||
|
||||
"forge.chapril.org/armen/armen/internal/components" |
||||
) |
||||
|
||||
func Build(app components.Application) (*crypto.Crypto, error) { |
||||
cc := crypto.New() |
||||
|
||||
key, ok := app.LookupEnv("KEY") |
||||
if !ok { |
||||
return cc, nil |
||||
} |
||||
|
||||
return cc, cc.SetKey(key) |
||||
} |
||||
|
||||
/* |
||||
######################################################################################################## @(°_°)@ ####### |
||||
*/ |
Loading…
Reference in new issue