ERP weblink 연동시 사번 uppercase 후 암호화 하도록 수정.

This commit is contained in:
leejinho 2020-03-26 15:37:07 +09:00
parent dcee3f117f
commit b0eb19e82e

View File

@ -53,7 +53,8 @@ export class DaesangCipherService {
encryptForSapErp(pvUserKey: string, employeeNum: string): string { encryptForSapErp(pvUserKey: string, employeeNum: string): string {
// const txt = '20200221090321_asdfghjk'; // 1QgLAiLqJ6Uo6bE4Qk1o3Yd6mfqxXSnmqXX%2FXLL7DoA%3D // const txt = '20200221090321_asdfghjk'; // 1QgLAiLqJ6Uo6bE4Qk1o3Yd6mfqxXSnmqXX%2FXLL7DoA%3D
// const txt = '20200221101444_asdfghjk'; // Lz1TIdGTQQMui%2BBHMdj8fatYYhXbwJEL%2BJ91C7jUWEs%3D // const txt = '20200221101444_asdfghjk'; // Lz1TIdGTQQMui%2BBHMdj8fatYYhXbwJEL%2BJ91C7jUWEs%3D
const str = moment().format('YYYYMMDDHHmmss') + '_' + employeeNum; const str =
moment().format('YYYYMMDDHHmmss') + '_' + employeeNum.toUpperCase();
const secretKeyToByteArray: Buffer = Buffer.from(pvUserKey, 'utf8').slice( const secretKeyToByteArray: Buffer = Buffer.from(pvUserKey, 'utf8').slice(
0, 0,
16 16