claudeunmask 1.0.17 → 1.0.19

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.
Files changed (2) hide show
  1. package/index.js +6 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* v 1.0.15 */
1
+ /* v 1.0.19 */
2
2
  function getMessageEncoding(message) {
3
3
  return new TextEncoder().encode(message);
4
4
  }
@@ -57,7 +57,7 @@
57
57
  );
58
58
  return getMessageDecoding(new Uint8Array(plaintextBuffer));
59
59
  } catch (error) {
60
- console.log ("decryptThisData error", error);
60
+ console.log ("failed", key, ciphertext);
61
61
  return "Failed to decrypt";
62
62
  }
63
63
 
@@ -70,15 +70,14 @@
70
70
 
71
71
  for (const curRec of inData) {
72
72
  var tmpRec = {}
73
- console.log ("curRec", curRec);
74
73
  for (const [key, value] of Object.entries(curRec)) {
75
- console.log ("Key, value", key, value);
76
74
  try {
77
75
  if (typeof value === "string" && value.includes("m$k_")) {
78
- const tmpData = curRec.secret_column.replace ("m$k_", "");
79
- const theData = base64ToBytes(tmpData.split('-')[0]);
76
+ var theData = base64ToBytes(curRec.secret_column.replace ("m$k_", ""));
77
+ // theData = base64ToBytes(theData.split('-')[0]);
78
+ // const theData = base64ToBytes(tmpData.split('-')[0]);
80
79
  const encryptionKey = await deriveKeyFromPassword(password, base64ToBytes(salt));
81
-
80
+ console.log ("trying", password, salt, "space", theData);
82
81
  tmpRec[key] = await decryptThisData (theData, encryptionKey, base64ToBytes(theIV));
83
82
  } else {
84
83
  tmpRec[key] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudeunmask",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "claude unmask test",
5
5
  "main": "index.js",
6
6
  "scripts": {