MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / Encrypt

Method Encrypt

pkg/encryption/cipher.go:14–14  ·  view source on GitHub ↗
(value []byte)

Source from the content-addressed store, hash-verified

12// Cipher provides methods to encrypt and decrypt
13type Cipher interface {
14 Encrypt(value []byte) ([]byte, error)
15 Decrypt(ciphertext []byte) ([]byte, error)
16}
17

Callers 10

EncodeSessionStateMethod · 0.65
encryptFunction · 0.65
runEncryptAndDecryptFunction · 0.65
TestGCMtoCFBErrorsFunction · 0.65
TestCFBtoGCMErrorsFunction · 0.65
EncryptMethod · 0.65

Implementers 3

base64Cipherpkg/encryption/cipher.go
cfbCipherpkg/encryption/cipher.go
gcmCipherpkg/encryption/cipher.go

Calls

no outgoing calls

Tested by 7

runEncryptAndDecryptFunction · 0.52
TestGCMtoCFBErrorsFunction · 0.52
TestCFBtoGCMErrorsFunction · 0.52