Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
13
type
Cipher
interface
{
14
Encrypt(value []byte) ([]byte, error)
15
Decrypt(ciphertext []byte) ([]byte, error)
16
}
17
Callers
10
EncodeSessionState
Method · 0.65
encrypt
Function · 0.65
TestEncodeAndDecodeAccessToken
Function · 0.65
TestEncodeAndDecodeAccessTokenB64
Function · 0.65
runEncryptAndDecrypt
Function · 0.65
TestDecryptCFBWrongSecret
Function · 0.65
TestDecryptGCMWrongSecret
Function · 0.65
TestGCMtoCFBErrors
Function · 0.65
TestCFBtoGCMErrors
Function · 0.65
Encrypt
Method · 0.65
Implementers
3
base64Cipher
pkg/encryption/cipher.go
cfbCipher
pkg/encryption/cipher.go
gcmCipher
pkg/encryption/cipher.go
Calls
no outgoing calls
Tested by
7
TestEncodeAndDecodeAccessToken
Function · 0.52
TestEncodeAndDecodeAccessTokenB64
Function · 0.52
runEncryptAndDecrypt
Function · 0.52
TestDecryptCFBWrongSecret
Function · 0.52
TestDecryptGCMWrongSecret
Function · 0.52
TestGCMtoCFBErrors
Function · 0.52
TestCFBtoGCMErrors
Function · 0.52