mirror of
https://github.com/wumansgy/goEncrypt.git
synced 2025-09-27 03:56:16 +08:00
24 lines
501 B
Go
24 lines
501 B
Go
package goEncrypt
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrCipherKey=errors.New("The secret key is wrong and cannot be decrypted. Please check")
|
|
)
|
|
|
|
const (
|
|
iv="wumansgy12345678"
|
|
ivdes="wumansgy"
|
|
|
|
privateFileName="private.pem"
|
|
publicFileName="public.pem"
|
|
|
|
eccPrivateFileName="eccprivate.pem"
|
|
eccPublishFileName="eccpublic.pem"
|
|
|
|
privateKeyPrefix=" WUMAN RSA PRIVATE KEY "
|
|
publicKeyPrefix=" WUMAN RSA PUBLIC KEY "
|
|
|
|
eccPrivateKeyPrefix=" WUMAN ECC PRIVATE KEY "
|
|
eccPublicKeyPrefix=" WUMAN ECC PUBLIC KEY "
|
|
) |