Code re-organization
Some checks failed
Go Tests / build (1.22.x) (push) Failing after 1m27s

This commit is contained in:
2025-01-26 18:20:45 -05:00
parent b93d1c29b8
commit 85938a2def
21 changed files with 685 additions and 348 deletions

View File

@@ -16,7 +16,7 @@ func pkcs7pad(data []byte, blockSize int) []byte {
}
func (g *Generator) Decrypt(s string) (string, error) {
c, err := aes.NewCipher(g.config.encryptionKeyBin)
c, err := aes.NewCipher(g.encryptionKey)
if err != nil {
return "", err
}
@@ -36,7 +36,7 @@ func (g *Generator) Decrypt(s string) (string, error) {
}
func (g *Generator) generateBaseAesEncUrl(file []byte) (string, error) {
c, err := aes.NewCipher(g.config.encryptionKeyBin)
c, err := aes.NewCipher(g.encryptionKey)
if err != nil {
return "", err
}