10 lines
316 B
Go
10 lines
316 B
Go
package encryptedstring
|
|
|
|
type IDataCryptor interface {
|
|
// Encrypt tries to encrypt the given binary with the appropriate cipher.
|
|
Encrypt(binary []byte) (encrypted []byte, err error)
|
|
|
|
// Decrypt tries to decrypt the given binary with the appropriate cipher.
|
|
Decrypt(binary []byte) (decrypted []byte, err error)
|
|
}
|