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

This commit is contained in:
Juan Ferrer 2023-01-30 17:45:36 +01:00
parent 5744759d53
commit b20194b6d0
1 changed files with 1 additions and 5 deletions

View File

@ -68,7 +68,7 @@ module.exports = Self => {
const cipher = crypto.createDecipheriv('des-ede3-cbc', secretKey, iv);
cipher.setAutoPadding(false);
const orderKey = cipher.update(zeroPad(str, 8), 'utf8', 'base64')
const orderKey = cipher.update(zeroPad(orderId, 8), 'utf8', 'base64')
+ cipher.final('utf8');
const res = crypto.createHmac('sha256', Buffer.from(orderKey, 'base64'))
@ -102,8 +102,4 @@ module.exports = Self => {
const pad = Buffer.alloc((blocksize - (buffer.length % blocksize)) % blocksize, 0);
return Buffer.concat([buffer, pad]);
}
function base64UrlDecode() {
}
};