EncryptEnvData is used to encrypt the env data TODO: remove this function if not needed func EncryptEnvData(data map[string]interface{}) (string, error) { jsonBytes, err := json.Marshal(data) if err != nil { return "", err } storeData, err := memorystore.Provider.GetEnvStore() if err != nil {
(password string)
| 62 | |
| 63 | // EncryptPassword is used for encrypting password |
| 64 | func EncryptPassword(password string) (string, error) { |
| 65 | pw, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost) |
| 66 | if err != nil { |
| 67 | return "", err |
| 68 | } |
| 69 | |
| 70 | return string(pw), nil |
| 71 | } |
no outgoing calls