upstream sync
This commit is contained in:
@@ -7,10 +7,17 @@ import (
|
||||
"crypto/cipher"
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
func CovertUintToByte32(id uint) [32]byte {
|
||||
b := make([]byte, 32)
|
||||
binary.LittleEndian.PutUint32(b, uint32(id))
|
||||
return [32]byte(b)
|
||||
}
|
||||
|
||||
type EncryptionClient interface {
|
||||
Encrypt(string) (string, error)
|
||||
Decrypt(string) (string, error)
|
||||
|
||||
Reference in New Issue
Block a user