cipher.go 293 B

12345678910
  1. // Copyright 2015 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package xorm
  5. type Cipher interface {
  6. Encrypt(strMsg string) ([]byte, error)
  7. Decrypt(src []byte) (decrypted []byte, err error)
  8. }