You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-08-08 22:46:33 +02:00
Improve cipher_test.go organization with subtests
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user