[change] lock tests
This commit is contained in:
parent
3511a4bd73
commit
d7d3d832cb
2 changed files with 4 additions and 3 deletions
3
.github/workflows/unit-test.yml
vendored
3
.github/workflows/unit-test.yml
vendored
|
|
@ -85,7 +85,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: ${{ env.REPO_GOU }}
|
repository: ${{ env.REPO_GOU }}
|
||||||
ref: dc3d98411f61e21cf775e4c82d92d5ac2acfc03c
|
ref: v0.10.2-locked
|
||||||
path: gou
|
path: gou
|
||||||
|
|
||||||
- name: Checkout V8Go
|
- name: Checkout V8Go
|
||||||
|
|
@ -99,6 +99,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: yaoapp/yao-dev-app
|
repository: yaoapp/yao-dev-app
|
||||||
|
ref: 5d89341d64e74d0c4559d4bc520c39f99deb7ffa
|
||||||
path: app
|
path: app
|
||||||
|
|
||||||
- name: Move Kun, Xun, Gou, V8Go
|
- name: Move Kun, Xun, Gou, V8Go
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,12 @@ func Base64AESEncode(key []byte, text string) (string, error) {
|
||||||
stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext)
|
stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext)
|
||||||
|
|
||||||
// convert to base64
|
// convert to base64
|
||||||
return base64.URLEncoding.EncodeToString(ciphertext), nil
|
return base64.StdEncoding.EncodeToString(ciphertext), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Base64AESDecode AES decode
|
// Base64AESDecode AES decode
|
||||||
func Base64AESDecode(key []byte, cryptoText string) (string, error) {
|
func Base64AESDecode(key []byte, cryptoText string) (string, error) {
|
||||||
ciphertext, _ := base64.URLEncoding.DecodeString(cryptoText)
|
ciphertext, _ := base64.StdEncoding.DecodeString(cryptoText)
|
||||||
|
|
||||||
block, err := aes.NewCipher(key)
|
block, err := aes.NewCipher(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue