Improve cipher_test.go organization with subtests

This commit is contained in:
Nick Meves
2020-06-12 14:36:59 -07:00
parent 559152a10f
commit e823d874b0
2 changed files with 72 additions and 91 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func NewBase64Cipher(initCipher func([]byte) (Cipher, error), secret []byte) (Ci
return &Base64Cipher{Cipher: c}, nil
}
// Encrypt encrypts a value with AES CFB & base64 encodes it
// Encrypt encrypts a value with AES CFB & Base64 encodes it
func (c *Base64Cipher) Encrypt(value []byte) ([]byte, error) {
encrypted, err := c.Cipher.Encrypt([]byte(value))
if err != nil {