init: mvp

This commit is contained in:
Arthur Khachaturov 2024-08-17 01:20:24 +03:00
commit e307989b9f
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
20 changed files with 835 additions and 0 deletions

View file

@ -0,0 +1,12 @@
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
}