Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/oauth2-proxy/oauth2-proxy
/ Decrypt
Method
Decrypt
pkg/encryption/cipher.go:15–15 ·
view source on GitHub ↗
(ciphertext []byte)
Source
from the content-addressed store, hash-verified
13
type
Cipher
interface
{
14
Encrypt(value []byte) ([]byte, error)
15
Decrypt(ciphertext []byte) ([]byte, error)
16
}
17
18
type
base64Cipher
struct
{
Callers
10
DecodeSessionState
Function · 0.65
decrypt
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
Decrypt
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