github.com/wanlay/gorm-dm8@v1.0.5/dmr/security/zz.go (about) 1 /* 2 * Copyright (c) 2000-2018, 达梦数据库有限公司. 3 * All rights reserved. 4 */ 5 6 package security 7 8 type Cipher interface { 9 Encrypt(plaintext []byte, genDigest bool) []byte 10 Decrypt(ciphertext []byte, checkDigest bool) ([]byte, error) 11 }