update go.mod
This commit is contained in:
+13
-2
@@ -2,6 +2,7 @@ package notify
|
||||
|
||||
import (
|
||||
"b612.me/starcrypto"
|
||||
"log"
|
||||
)
|
||||
|
||||
var defaultRsaKey = []byte(`-----BEGIN RSA PRIVATE KEY-----
|
||||
@@ -74,11 +75,21 @@ GoBHEfvmAoGGrk4qNbjm7JECAwEAAQ==
|
||||
var defaultAesKey = []byte{0x19, 0x96, 0x11, 0x27, 228, 187, 187, 231, 142, 137, 230, 179, 189, 229, 184, 133}
|
||||
|
||||
func defaultMsgEn(key []byte, d []byte) []byte {
|
||||
return starcrypto.AesEncryptCFB(d, key)
|
||||
data, err := starcrypto.CustomEncryptAesCFB(d, key)
|
||||
if err != nil {
|
||||
log.Print(err)
|
||||
return nil
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
func defaultMsgDe(key []byte, d []byte) []byte {
|
||||
return starcrypto.AesDecryptCFB(d, key)
|
||||
data, err := starcrypto.CustomDecryptAesCFB(d, key)
|
||||
if err != nil {
|
||||
log.Print(err)
|
||||
return nil
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user