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i95w1/uqt8TEDeekAkXKel5v+1c5HdtnFNpq19+NQbrITD7m8DJwTH4+VbfR4we6I0VUAwOpwn0qRgMZRZbvfiMIfgppjK02KW4wKbHrV75av5RIyIbXyCGNLX+0cVcRBH17qayeAGJppKBbKAixShlig2ynIr7BEGP551sJQ76EwdJ2qLUfHC9NA/NT4XZdzEvxknMm6DckbgC6VVOcppQ4gQGXcc2Ci2o5RsBXaGz8VUUk5ydyDsssEKxg5nD/lA2CcIDgyu3+qViyy+33014HvvjFNVlLdbcW1dY5AvN+LpMbA/8U9echgH2bcGgWA+xsZaJUXRF6/mdeUVrE+8L1icxTqRmFVdup0yuNaOxftG6c3f05Lz0b0qN/TwT6vvBqKO9vt9IlqtJXQnGQ+vY7P0WO8Uir2vqxYhZK4GcvBgKM0doE="
test_key := "4AvVhmFLUs0KTA3Kprsdag=="
test_iv := "vN2mBu17W/8Ewfg3AX8Ayg=="
key, _ := base64.StdEncoding.DecodeString(test_key)
byteKey := []byte(key)
add := []byte("")
block, _ := aes.NewCipher(byteKey)
aesgcm, _ := cipher.NewGCMWithNonceSize(block, 16)
iv, _ := base64.StdEncoding.DecodeString(test_iv)
enc, _ := base64.StdEncoding.DecodeString(test_enc)
plaintest, _ := aesgcm.Open(nil, iv, enc, add)
fmt.Println("plaintest: ", string(plaintest))
}
Python Code:
def test_gcm_decode():
test_enc = "keq0sOWsYgB1rWQmGkfca7VFvTVqE4v/gAVpaz+iaYe3ecpTUHKV9QKWPfhgNKwMG70v2lxe+kK8wLIt8awqGmpmKN9UYZgl3BdTEiwSkTDfJsMSkcr4Bw15fXGgzGyL1HL38ghPu82tPeXFT5rkmgIBbd7TZF4D90ulTOgUVFhRt+fjapz8mwj2fvItoQJ5K1PPhtMT0AwZpjRT1Hg03iWozK9CtX1M5ZX9VYT2g+Dmb+MQGB22+SCvVqThkoyqgQ3jD2wnrhHsqIqeWZ1ejAgLgtD8hp31DhGKC78eExjyDeEv/bLPbrpmZ462MNl95krVN0IbeDRmSfHat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vfiMIfgppjK02KW4wKbHrV75av5RIyIbXyCGNLX+0cVcRBH17qayeAGJppKBbKAixShlig2ynIr7BEGP551sJQ76EwdJ2qLUfHC9NA/NT4XZdzEvxknMm6DckbgC6VVOcppQ4gQGXcc2Ci2o5RsBXaGz8VUUk5ydyDsssEKxg5nD/lA2CcIDgyu3+qViyy+33014HvvjFNVlLdbcW1dY5AvN+LpMbA/8U9echgH2bcGgWA+xsZaJUXRF6/mdeUVrE+8L1icxTqRmFVdup0yuNaOxftG6c3f05Lz0b0qN/TwT6vvBqKO9vt9IlqtJXQnGQ+vY7P0WO8Uir2vqxYhZK4GcvBgKM0doE="
test_key = "4AvVhmFLUs0KTA3Kprsdag=="
test_iv = "vN2mBu17W/8Ewfg3AX8Ayg=="
enc = base64.b64decode(test_enc)
key = base64.b64decode(test_key)
iv = base64.b64decode(test_iv)
mode = AES.MODE_GCM
decryptor = AES.new(key, mode, iv)
plaintext = decryptor.decrypt(enc)
print(plaintext)
but I cannot decrypt it with lua-resty-string:
local function gcm_decrypt()
local aes = require "resty.aes"
local ngx_decode_base64 = ngx.decode_base64
local cipher_len = {
128,
192,
256
}
local test_enc = "keq0sOWsYgB1rWQmGkfca7VFvTVqE4v/gAVpaz+iaYe3ecpTUHKV9QKWPfhgNKwMG70v2lxe+kK8wLIt8awqGmpmKN9UYZgl3BdTEiwSkTDfJsMSkcr4Bw15fXGgzGyL1HL38ghPu82tPeXFT5rkmgIBbd7TZF4D90ulTOgUVFhRt+fjapz8mwj2fvItoQJ5K1PPhtMT0AwZpjRT1Hg03iWozK9CtX1M5ZX9VYT2g+Dmb+MQGB22+SCvVqThkoyqgQ3jD2wnrhHsqIqeWZ1ejAgLgtD8hp31DhGKC78eExjyDeEv/bLPbrpmZ462MNl95krVN0IbeDRmSfHatKt7y+aOiOuDnwOxTqXh6Cn/mxyA2nqQNqhNNdN/KLm4kiFSQbYEVV7U1+ed+AofkC2XEYo/dACexKU4VexT2aRVj2PdlHl9+MAg9NbfgFpkQ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6DckbgC6VVOcppQ4gQGXcc2Ci2o5RsBXaGz8VUUk5ydyDsssEKxg5nD/lA2CcIDgyu3+qViyy+33014HvvjFNVlLdbcW1dY5AvN+LpMbA/8U9echgH2bcGgWA+xsZaJUXRF6/mdeUVrE+8L1icxTqRmFVdup0yuNaOxftG6c3f05Lz0b0qN/TwT6vvBqKO9vt9IlqtJXQnGQ+vY7P0WO8Uir2vqxYhZK4GcvBgKM0doE="
local test_key = "4AvVhmFLUs0KTA3Kprsdag=="
local test_iv = "vN2mBu17W/8Ewfg3AX8Ayg=="
local enc = ngx_decode_base64(test_enc)
local key = ngx_decode_base64(test_key)
local iv = ngx_decode_base64(test_iv)
for _, vv in ipairs(cipher_len) do
local decryptor, err = aes:new(key, nil, aes.cipher(vv, "gcm"), {iv = iv}, nil, nil, false)
if decryptor then
local plaintext, err = decryptor:decrypt(enc)
if not err and plaintext then
return true
else
ngx.log(ngx.ERR, "decrypt failed: ", err)
end
else
ngx.log(ngx.ERR, "aes new failed: ", err)
end
end
end
Is the method I am using is wrong?
Thank you~