From d7d3d832cb1b289236bb820d5638d45192da8660 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 8 Feb 2023 20:10:03 +0800 Subject: [PATCH] [change] lock tests --- .github/workflows/unit-test.yml | 3 ++- crypto/aes.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index be58d6d4..2c6d770d 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -85,7 +85,7 @@ jobs: uses: actions/checkout@v2 with: repository: ${{ env.REPO_GOU }} - ref: dc3d98411f61e21cf775e4c82d92d5ac2acfc03c + ref: v0.10.2-locked path: gou - name: Checkout V8Go @@ -99,6 +99,7 @@ jobs: uses: actions/checkout@v2 with: repository: yaoapp/yao-dev-app + ref: 5d89341d64e74d0c4559d4bc520c39f99deb7ffa path: app - name: Move Kun, Xun, Gou, V8Go diff --git a/crypto/aes.go b/crypto/aes.go index 43a4c9ac..d324f6c3 100644 --- a/crypto/aes.go +++ b/crypto/aes.go @@ -30,12 +30,12 @@ func Base64AESEncode(key []byte, text string) (string, error) { stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext) // convert to base64 - return base64.URLEncoding.EncodeToString(ciphertext), nil + return base64.StdEncoding.EncodeToString(ciphertext), nil } // Base64AESDecode AES decode func Base64AESDecode(key []byte, cryptoText string) (string, error) { - ciphertext, _ := base64.URLEncoding.DecodeString(cryptoText) + ciphertext, _ := base64.StdEncoding.DecodeString(cryptoText) block, err := aes.NewCipher(key) if err != nil {