16 lines
594 B
JavaScript
16 lines
594 B
JavaScript
// const ciphertext = CryptoJS.encrypt(message, key).toString();
|
|
//
|
|
//
|
|
// function getToken(player) {
|
|
// let key = CryptoJS.enc.Utf8.parse("fipFfVsZsTda94hJNKJfLoaqyqMZFFimwLt")
|
|
// const {name, birthday, height, weight} = player
|
|
// let base64Name = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(name))
|
|
// let encrypted = CryptoJS.DES.encrypt(`${base64Name}${birthday}${height}${weight}`, key, {
|
|
// mode: CryptoJS.mode.ECB,
|
|
// padding: CryptoJS.pad.Pkcs7
|
|
// })
|
|
// return encrypted.toString()
|
|
// }
|
|
|
|
!(function(a,b){console.log('result',a,b)})(1,2)
|