mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
a0108a1e5b
* Add encryption service * Add tests for encryption service * Inject encryption service into http server * Replace encryption global function usage in login tests * Apply suggestions from code review Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com> * Migrate to Wire * Undo non-desired changes * Move Encryption bindings to OSS Wire set Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com> Co-authored-by: Joan López de la Franca Beltran <5459617+joanlopez@users.noreply.github.com> Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
7 lines
129 B
Go
7 lines
129 B
Go
package encryption
|
|
|
|
type Service interface {
|
|
Encrypt([]byte, string) ([]byte, error)
|
|
Decrypt([]byte, string) ([]byte, error)
|
|
}
|