{"modulePath":"github.com/cloudfoundry/gorouter","version":"v0.0.0-20250429140807-a602bb6a6243","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package secure\n\n## Functions\n\n```go\nfunc NewPbkdf2(input []byte, keyLen int) []byte\n```\n\n```go\nfunc RandomBytes(size int) ([]byte, error)\n```\n\n## Types\n\n```go\ntype AesGCM struct {\n\tcipher.AEAD\n}\n```\n\n```go\nfunc NewAesGCM(key []byte) (*AesGCM, error)\n```\n\n```go\nfunc (gcm *AesGCM) Decrypt(cipherText, nonce []byte) ([]byte, error)\n```\n\n```go\nfunc (gcm *AesGCM) Encrypt(plainText []byte) (cipherText, nonce []byte, err error)\n```\n\n```go\ntype Crypto interface {\n\tEncrypt(plainText []byte) (cipherText []byte, nonce []byte, err error)\n\tDecrypt(cipherText, nonce []byte) ([]byte, error)\n}\n```\n\n","path":"github.com/cloudfoundry/gorouter/common/secure","name":"secure","synopsis":"","isRedistributable":true}
