refs #5174 Hotfix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-01-30 20:23:52 +01:00
parent 64d8ae1f49
commit 424dcb954c
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module.exports = Self => {
const cipher = crypto.createCipheriv('des-ede3-cbc', secretKey, iv);
cipher.setAutoPadding(false);
const orderKey = cipher.update(zeroPad(orderId, 8), 'utf8', 'base64')
+ cipher.final('base64');
+ cipher.final();
const res = crypto.createHmac('sha256', Buffer.from(orderKey, 'base64'))
.update(merchantParameters)