js_lis 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,8 @@ export class VirtualKeyboard {
33
33
  encodeText(text) {
34
34
  const encrypted = CryptoJS.AES.encrypt(text, CryptoJS.enc.Hex.parse(this.secretKey), {
35
35
  iv: this.iv,
36
- mode: CryptoJS.mode.GCM,
37
- format: CryptoJS.format.Hex
36
+ mode: CryptoJS.mode.CBC,
37
+ padding: CryptoJS.pad.Pkcs7
38
38
  });
39
39
  return {
40
40
  encrypted: encrypted.ciphertext.toString(CryptoJS.enc.Base64),
@@ -48,8 +48,8 @@ export class VirtualKeyboard {
48
48
  CryptoJS.enc.Hex.parse(this.secretKey),
49
49
  {
50
50
  iv: CryptoJS.enc.Base64.parse(encryptedData.iv),
51
- mode: CryptoJS.mode.GCM,
52
- format: CryptoJS.format.Hex
51
+ mode: CryptoJS.mode.CBC,
52
+ padding: CryptoJS.pad.Pkcs7
53
53
  }
54
54
  );
55
55
  return decrypted.toString(CryptoJS.enc.Utf8);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js_lis",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"