Jobs & Workflows
https://armen.surge.sh
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
812 B
28 lines
812 B
/* |
|
------------------------------------------------------------------------------------------------------------------------ |
|
####### 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(ccs *components.Components) (components.Crypto, error) { |
|
cc := crypto.New() |
|
|
|
key, ok := ccs.Application.LookupEnv("KEY") |
|
if !ok { |
|
return cc, nil |
|
} |
|
|
|
return cc, cc.SetKey(key) |
|
} |
|
|
|
/* |
|
######################################################################################################## @(°_°)@ ####### |
|
*/
|
|
|