Skip to content

Commit

Permalink
feat: modify secret driver interface to include GetPublicKey and allo…
Browse files Browse the repository at this point in the history
…w Decrypt() to be given a key
  • Loading branch information
alxndr13 committed Feb 6, 2024
1 parent 06234ed commit c39358f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion secret/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import (

type Driver interface {
Type() string
GetPublicKey() string
Encrypt(data string) (string, error)
Decrypt(encrypted string) (string, error)
// if key is set, use that one for decryption, otherwise use the key set in the driver (if available)
Decrypt(encrypted string, key string) (string, error)
}

type ConfigurableDriver interface {
Expand Down

0 comments on commit c39358f

Please sign in to comment.