init: mvp
This commit is contained in:
commit
e307989b9f
20 changed files with 835 additions and 0 deletions
12
internal/entity/config/decodecipher.go
Normal file
12
internal/entity/config/decodecipher.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue