transx/cipher/chacha.go

21 lines
309 B
Go
Raw Normal View History

package cipher
type ChaCha struct {
}
func (*ChaCha) Decrypt(data []byte) (decrypted []byte, err error) {
decrypted = data
err = nil
return
}
func (*ChaCha) Encrypt(data []byte) (encryped []byte, err error) {
encryped = data
err = nil
return
}
func NewChaCha() (cipher Cipher) {
return &ChaCha{}
}