ERP weblink 연동시 사번 uppercase 후 암호화 하도록 수정.
This commit is contained in:
parent
dcee3f117f
commit
b0eb19e82e
|
@ -53,7 +53,8 @@ export class DaesangCipherService {
|
|||
encryptForSapErp(pvUserKey: string, employeeNum: string): string {
|
||||
// const txt = '20200221090321_asdfghjk'; // 1QgLAiLqJ6Uo6bE4Qk1o3Yd6mfqxXSnmqXX%2FXLL7DoA%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(
|
||||
0,
|
||||
16
|
||||
|
|
Loading…
Reference in New Issue
Block a user