tappin/internal/entity/config/decodecipher.go
Arthur Khachaturov e307989b9f
init: mvp
2024-08-17 01:20:24 +03:00

12 lines
230 B
Go

package config
import "encoding/base64"
func (c *DailyCipher) Decode() (string, error) {
enc, err := base64.StdEncoding.DecodeString(c.Cipher[:3] + c.Cipher[4:])
if err != nil {
return "", err
}
return string(enc), nil
}