evalphobia/hierogolyph

View on GitHub
cipher/interface.go

Summary

Maintainability
A
0 mins
Test Coverage
package cipher

// Cipher is interface for encryption algorithm.
type Cipher interface {
    Encrypt(plainText string, key []byte) (cipherText string, err error)
    Decrypt(cipherText string, key []byte) (plainText string, err error)
}