mycpen-blog 0.0.0-fyvdazuhhw → 0.0.0-fzugvkbncm

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.
package/lib/hbe.js CHANGED
@@ -1,178 +1 @@
1
- (()=>{"use strict";const e=window.crypto||window.msCrypto,t=window.localStorage,n="hexo-blog-encrypt:#"+window.location.pathname,r=h("hexo-blog-encrypt的作者们都是大帅比!"),o=h("hexo-blog-encrypt是地表最强Hexo加密插件!"),a="<hbe-prefix></hbe-prefix>",i=document.getElementById("hexo-blog-encrypt"),c=i.dataset.wpm,s=i.dataset.whm,l=i.getElementsByTagName("script").hbeData,d=l.innerText,u=l.dataset.hmacdigest;function y(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map((e=>parseInt(e,16))))}function h(e){for(var t=e.length,n=0,r=new Array,o=0;o<t;){var a=e.codePointAt(o);a<128?(r[n++]=a,o++):a>127&&a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128,o++):a>2047&&a<65536?(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128,o++):(r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128,o+=2)}return new Uint8Array(r)}function m(e){if("object"!=typeof e||null===e||"number"!=typeof e.byteLength)throw new TypeError("Expected input to be an ArrayBuffer");for(var t,n=new Uint8Array(e),r="",o=0;o<n.length;o++)r+=1===(t=n[o].toString(16)).length?"0"+t:t;return r}async function f(e){let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((async e=>{e.replaceWith(await async function(e){let t=document.createElement("script");return["type","text","src","crossorigin","defer","referrerpolicy"].forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e))})),t}async function g(t,r,o){let i=y(d);return await e.subtle.decrypt({name:"AES-CBC",iv:r},t,i.buffer).then((async t=>{const r=(new TextDecoder).decode(t);if(!r.startsWith(a))throw"Decode successfully but not start with KnownPrefix.";const i=document.createElement("button");i.textContent="Encrypt again",i.type="button",i.classList.add("hbe-button"),i.addEventListener("click",(()=>{window.localStorage.removeItem(n),window.location.reload()})),document.getElementById("hexo-blog-encrypt").style.display="inline",document.getElementById("hexo-blog-encrypt").innerHTML="",document.getElementById("hexo-blog-encrypt").appendChild(await f(r)),document.getElementById("hexo-blog-encrypt").appendChild(i),document.querySelectorAll("img").forEach((e=>{e.getAttribute("data-src")&&!e.src&&(e.src=e.getAttribute("data-src"))})),window.NexT&&NexT.boot&&"function"==typeof NexT.boot.refresh&&NexT.boot.refresh();var c=document.getElementById("toc-div");c&&(c.style.display="inline");var l=document.getElementsByClassName("toc-div-class");if(l&&l.length>0)for(var d=0;d<l.length;d++)l[d].style.display="inline";var h=new Event("hexo-blog-decrypt");return window.dispatchEvent(h),await async function(t,n){const r=(new TextEncoder).encode(n);let o=y(u);const a=await e.subtle.verify({name:"HMAC",hash:"SHA-256"},t,o,r);return console.log(`Verification result: ${a}`),a||(alert(s),console.log(`${s}, got `,o," but proved wrong.")),a}(o,r)})).catch((e=>(alert(c),console.log(e),!1)))}!function(){const a=JSON.parse(t.getItem(n));if(a){console.log(`Password got from localStorage(${n}): `,a);const r=y(a.iv).buffer,o=a.dk,i=a.hmk;e.subtle.importKey("jwk",o,{name:"AES-CBC",length:256},!0,["decrypt"]).then((o=>{e.subtle.importKey("jwk",i,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"]).then((e=>{g(o,r,e).then((e=>{e||t.removeItem(n)}))}))}))}i.addEventListener("keydown",(async a=>{if(a.isComposing||13===a.keyCode){const a=document.getElementById("hbePass").value,i=await function(t){let n=new TextEncoder;return e.subtle.importKey("raw",n.encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"])}(a),c=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"])}(i),s=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"AES-CBC",length:256},!0,["decrypt"])}(i),l=await function(t){return e.subtle.deriveBits({name:"PBKDF2",hash:"SHA-256",salt:o.buffer,iterations:512},t,128)}(i);g(s,l,c).then((r=>{console.log(`Decrypt result: ${r}`),r&&e.subtle.exportKey("jwk",s).then((r=>{e.subtle.exportKey("jwk",c).then((e=>{const o={dk:r,iv:m(l),hmk:e};t.setItem(n,JSON.stringify(o))}))}))}))}}))}()})(); _0x462e65(_0x33f36c) {
2
- const _0x3c7ef8 = _0x36622e;
3
- var _0xb1000b = _0x33f36c[_0x3c7ef8(0xa5)], _0x1dc99d = 0x0, _0x111148 = new Array();
4
- for (var _0x16788c = 0x0; _0x16788c < _0xb1000b;) {
5
- var _0x5bb18b = _0x33f36c['codePointAt'](_0x16788c);
6
- if (_0x5bb18b < 0x80)
7
- _0x111148[_0x1dc99d++] = _0x5bb18b, _0x16788c++;
8
- else {
9
- if (_0x5bb18b > 0x7f && _0x5bb18b < 0x800)
10
- _0x111148[_0x1dc99d++] = _0x5bb18b >> 0x6 | 0xc0, _0x111148[_0x1dc99d++] = _0x5bb18b & 0x3f | 0x80, _0x16788c++;
11
- else
12
- _0x5bb18b > 0x7ff && _0x5bb18b < 0x10000 ? (_0x111148[_0x1dc99d++] = _0x5bb18b >> 0xc | 0xe0, _0x111148[_0x1dc99d++] = _0x5bb18b >> 0x6 & 0x3f | 0x80, _0x111148[_0x1dc99d++] = _0x5bb18b & 0x3f | 0x80, _0x16788c++) : (_0x111148[_0x1dc99d++] = _0x5bb18b >> 0x12 | 0xf0, _0x111148[_0x1dc99d++] = _0x5bb18b >> 0xc & 0x3f | 0x80, _0x111148[_0x1dc99d++] = _0x5bb18b >> 0x6 & 0x3f | 0x80, _0x111148[_0x1dc99d++] = _0x5bb18b & 0x3f | 0x80, _0x16788c += 0x2);
13
- }
14
- }
15
- return new Uint8Array(_0x111148);
16
- }
17
- function _0x1eb3a5(_0x1a7e0e) {
18
- const _0x2f72fc = _0x36622e;
19
- if (typeof _0x1a7e0e !== _0x2f72fc(0xba) || _0x1a7e0e === null || typeof _0x1a7e0e[_0x2f72fc(0x71)] !== _0x2f72fc(0x6f))
20
- throw new TypeError(_0x2f72fc(0xb5));
21
- var _0x11b964 = new Uint8Array(_0x1a7e0e), _0x1c0823 = '', _0x2ab710;
22
- for (var _0x22f259 = 0x0; _0x22f259 < _0x11b964['length']; _0x22f259++) {
23
- _0x2ab710 = _0x11b964[_0x22f259]['toString'](0x10), _0x1c0823 += _0x2ab710[_0x2f72fc(0xa5)] === 0x1 ? '0' + _0x2ab710 : _0x2ab710;
24
- }
25
- return _0x1c0823;
26
- }
27
- async function _0x21b45e(_0x521832) {
28
- const _0x41218f = _0x36622e;
29
- let _0x270cfa = document['createElement']('script');
30
- const _0x1bc739 = [
31
- _0x41218f(0x9c),
32
- 'text',
33
- 'src',
34
- _0x41218f(0x9d),
35
- _0x41218f(0xa3),
36
- _0x41218f(0x66)
37
- ];
38
- return _0x1bc739[_0x41218f(0x8c)](_0x54bbaf => {
39
- if (_0x521832[_0x54bbaf])
40
- _0x270cfa[_0x54bbaf] = _0x521832[_0x54bbaf];
41
- }), _0x270cfa;
42
- }
43
- async function _0x44ea82(_0x5611b1) {
44
- const _0x279602 = _0x36622e;
45
- let _0x1f867e = document[_0x279602(0xaa)](_0x279602(0xae));
46
- return _0x1f867e['innerHTML'] = _0x5611b1, _0x1f867e[_0x279602(0x84)](_0x279602(0x92))[_0x279602(0x8c)](async _0x1283fc => {
47
- const _0x5b519d = _0x279602;
48
- _0x1283fc[_0x5b519d(0xa2)](await _0x21b45e(_0x1283fc));
49
- }), _0x1f867e;
50
- }
51
- function _0x219bb8(_0x136922) {
52
- const _0x394586 = _0x36622e;
53
- let _0x15fa5d = new TextEncoder();
54
- return _0x4793d7[_0x394586(0xa7)][_0x394586(0x79)](_0x394586(0xbc), _0x15fa5d[_0x394586(0x94)](_0x136922), { 'name': _0x394586(0xb3) }, ![], [
55
- _0x394586(0x82),
56
- _0x394586(0x7a)
57
- ]);
58
- }
59
- function _0x2fc573(_0x2516d4) {
60
- const _0x338477 = _0x36622e;
61
- return _0x4793d7[_0x338477(0xa7)][_0x338477(0x82)]({
62
- 'name': _0x338477(0xb3),
63
- 'hash': 'SHA-256',
64
- 'salt': _0x3b66a9[_0x338477(0x7f)],
65
- 'iterations': 0x400
66
- }, _0x2516d4, {
67
- 'name': _0x338477(0x80),
68
- 'hash': 'SHA-256',
69
- 'length': 0x100
70
- }, !![], ['verify']);
71
- }
72
- function _0x1c6f3b(_0x5f08ad) {
73
- const _0x478c10 = _0x36622e;
74
- return _0x4793d7[_0x478c10(0xa7)][_0x478c10(0x82)]({
75
- 'name': _0x478c10(0xb3),
76
- 'hash': _0x478c10(0x90),
77
- 'salt': _0x3b66a9[_0x478c10(0x7f)],
78
- 'iterations': 0x400
79
- }, _0x5f08ad, {
80
- 'name': _0x478c10(0x96),
81
- 'length': 0x100
82
- }, !![], [_0x478c10(0x74)]);
83
- }
84
- function _0x3c6579(_0xbba1a6) {
85
- const _0x4223e0 = _0x36622e;
86
- return _0x4793d7[_0x4223e0(0xa7)][_0x4223e0(0x7a)]({
87
- 'name': _0x4223e0(0xb3),
88
- 'hash': _0x4223e0(0x90),
89
- 'salt': _0x1600af['buffer'],
90
- 'iterations': 0x200
91
- }, _0xbba1a6, 0x10 * 0x8);
92
- }
93
- async function _0xdf3f19(_0x1357f8, _0x162d9e) {
94
- const _0x2fc8cf = _0x36622e, _0x111e3e = new TextEncoder(), _0x19615d = _0x111e3e[_0x2fc8cf(0x94)](_0x162d9e);
95
- let _0x4aa2b5 = _0xd09829(_0x2c7a46);
96
- const _0x1eb295 = await _0x4793d7['subtle']['verify']({
97
- 'name': _0x2fc8cf(0x80),
98
- 'hash': _0x2fc8cf(0x90)
99
- }, _0x1357f8, _0x4aa2b5, _0x19615d);
100
- return console['log']('Verification\x20result:\x20' + _0x1eb295), !_0x1eb295 && (alert(_0x15ee57), console[_0x2fc8cf(0xa6)](_0x15ee57 + _0x2fc8cf(0x8f), _0x4aa2b5, '\x20but\x20proved\x20wrong.')), _0x1eb295;
101
- }
102
- async function _0x565607(_0x2db3ca, _0x20f717, _0x4e739d) {
103
- const _0x2bbf50 = _0x36622e;
104
- let _0x2a82df = _0xd09829(_0x101c9c);
105
- const _0x5182ce = await _0x4793d7[_0x2bbf50(0xa7)]['decrypt']({
106
- 'name': _0x2bbf50(0x96),
107
- 'iv': _0x20f717
108
- }, _0x2db3ca, _0x2a82df[_0x2bbf50(0x7f)])[_0x2bbf50(0xb4)](async _0x22ea04 => {
109
- const _0x23bb74 = _0x2bbf50, _0x4d5de8 = new TextDecoder(), _0x15bfe7 = _0x4d5de8[_0x23bb74(0xbb)](_0x22ea04);
110
- if (!_0x15bfe7[_0x23bb74(0x8b)](_0xc12b85))
111
- throw _0x23bb74(0x9a);
112
- const _0x3915e7 = document[_0x23bb74(0xaa)](_0x23bb74(0xac));
113
- _0x3915e7[_0x23bb74(0x6b)] = _0x23bb74(0x68), _0x3915e7['type'] = _0x23bb74(0xac), _0x3915e7[_0x23bb74(0x91)]['add'](_0x23bb74(0x76)), _0x3915e7[_0x23bb74(0x6d)]('click', () => {
114
- const _0x438023 = _0x23bb74;
115
- window['localStorage']['removeItem'](_0x3b82d2), window[_0x438023(0xa4)][_0x438023(0x9b)]();
116
- }), document[_0x23bb74(0x87)](_0x23bb74(0xb2))['style']['display'] = 'inline', document[_0x23bb74(0x87)]('hexo-blog-encrypt')[_0x23bb74(0x8a)] = '', document[_0x23bb74(0x87)]('hexo-blog-encrypt')[_0x23bb74(0x99)](await _0x44ea82(_0x15bfe7)), document[_0x23bb74(0x87)](_0x23bb74(0xb2))[_0x23bb74(0x99)](_0x3915e7), document[_0x23bb74(0x84)]('img')[_0x23bb74(0x8c)](_0x2da44c => {
117
- const _0x17ee2c = _0x23bb74;
118
- _0x2da44c[_0x17ee2c(0x83)](_0x17ee2c(0x9e)) && !_0x2da44c['src'] && (_0x2da44c['src'] = _0x2da44c[_0x17ee2c(0x83)](_0x17ee2c(0x9e)));
119
- }), window[_0x23bb74(0x7b)] && NexT[_0x23bb74(0x6e)] && typeof NexT[_0x23bb74(0x6e)][_0x23bb74(0x9f)] === _0x23bb74(0x7c) && NexT[_0x23bb74(0x6e)][_0x23bb74(0x9f)]();
120
- var _0x1f716b = document[_0x23bb74(0x87)]('toc-div');
121
- _0x1f716b && (_0x1f716b[_0x23bb74(0x78)]['display'] = _0x23bb74(0xa8));
122
- var _0x306563 = document[_0x23bb74(0xb1)](_0x23bb74(0x6a));
123
- if (_0x306563 && _0x306563[_0x23bb74(0xa5)] > 0x0)
124
- for (var _0x3cbeae = 0x0; _0x3cbeae < _0x306563[_0x23bb74(0xa5)]; _0x3cbeae++) {
125
- _0x306563[_0x3cbeae][_0x23bb74(0x78)]['display'] = _0x23bb74(0xa8);
126
- }
127
- var _0x3f3b10 = new Event('hexo-blog-decrypt');
128
- return window[_0x23bb74(0xb7)](_0x3f3b10), await _0xdf3f19(_0x4e739d, _0x15bfe7);
129
- })[_0x2bbf50(0xbd)](_0x465f5 => {
130
- const _0x20baf1 = _0x2bbf50;
131
- return alert(_0xc18718), console[_0x20baf1(0xa6)](_0x465f5), ![];
132
- });
133
- return _0x5182ce;
134
- }
135
- function _0x3bbe22() {
136
- const _0x3af970 = _0x36622e, _0x68e3e3 = JSON['parse'](_0x17071e[_0x3af970(0x98)](_0x3b82d2));
137
- if (_0x68e3e3) {
138
- console[_0x3af970(0xa6)]('Password\x20got\x20from\x20localStorage(' + _0x3b82d2 + _0x3af970(0xb0), _0x68e3e3);
139
- const _0x3b49a = _0xd09829(_0x68e3e3['iv'])['buffer'], _0x23fbc3 = _0x68e3e3['dk'], _0x47a3e4 = _0x68e3e3[_0x3af970(0x81)];
140
- _0x4793d7[_0x3af970(0xa7)][_0x3af970(0x79)](_0x3af970(0x69), _0x23fbc3, {
141
- 'name': _0x3af970(0x96),
142
- 'length': 0x100
143
- }, !![], [_0x3af970(0x74)])[_0x3af970(0xb4)](_0x2298aa => {
144
- const _0xb3c061 = _0x3af970;
145
- _0x4793d7[_0xb3c061(0xa7)][_0xb3c061(0x79)]('jwk', _0x47a3e4, {
146
- 'name': 'HMAC',
147
- 'hash': 'SHA-256',
148
- 'length': 0x100
149
- }, !![], ['verify'])[_0xb3c061(0xb4)](_0x4a7ca9 => {
150
- _0x565607(_0x2298aa, _0x3b49a, _0x4a7ca9)['then'](_0x70563d => {
151
- !_0x70563d && _0x17071e['removeItem'](_0x3b82d2);
152
- });
153
- });
154
- });
155
- }
156
- _0x2946db[_0x3af970(0x6d)]('keydown', async _0x125e78 => {
157
- const _0x1532b5 = _0x3af970;
158
- if (_0x125e78['isComposing'] || _0x125e78['keyCode'] === 0xd) {
159
- const _0x336ff9 = document[_0x1532b5(0x87)](_0x1532b5(0x93))['value'], _0x1bf5aa = await _0x219bb8(_0x336ff9), _0xe18c8a = await _0x2fc573(_0x1bf5aa), _0x2b6785 = await _0x1c6f3b(_0x1bf5aa), _0x3f3a2b = await _0x3c6579(_0x1bf5aa);
160
- _0x565607(_0x2b6785, _0x3f3a2b, _0xe18c8a)[_0x1532b5(0xb4)](_0x4980fc => {
161
- const _0x1f9f40 = _0x1532b5;
162
- console['log'](_0x1f9f40(0xa0) + _0x4980fc), _0x4980fc && _0x4793d7[_0x1f9f40(0xa7)][_0x1f9f40(0xb9)](_0x1f9f40(0x69), _0x2b6785)[_0x1f9f40(0xb4)](_0xaffbb6 => {
163
- const _0x1c20ca = _0x1f9f40;
164
- _0x4793d7['subtle']['exportKey'](_0x1c20ca(0x69), _0xe18c8a)['then'](_0x4cffb4 => {
165
- const _0x48eaf9 = _0x1c20ca, _0x28a0f4 = {
166
- 'dk': _0xaffbb6,
167
- 'iv': _0x1eb3a5(_0x3f3a2b),
168
- 'hmk': _0x4cffb4
169
- };
170
- _0x17071e[_0x48eaf9(0xaf)](_0x3b82d2, JSON['stringify'](_0x28a0f4));
171
- });
172
- });
173
- });
174
- }
175
- });
176
- }
177
- _0x3bbe22();
178
- })()));
1
+ (()=>{"use strict";const e=window.crypto||window.msCrypto,t=window.localStorage,n="hexo-blog-encrypt:#"+window.location.pathname,r=h("hexo-blog-encrypt的作者们都是大帅比!"),o=h("hexo-blog-encrypt是地表最强Hexo加密插件!"),a="<hbe-prefix></hbe-prefix>",i=document.getElementById("hexo-blog-encrypt"),c=i.dataset.wpm,s=i.dataset.whm,l=i.getElementsByTagName("script").hbeData,d=l.innerText,u=l.dataset.hmacdigest;function y(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map((e=>parseInt(e,16))))}function h(e){for(var t=e.length,n=0,r=new Array,o=0;o<t;){var a=e.codePointAt(o);a<128?(r[n++]=a,o++):a>127&&a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128,o++):a>2047&&a<65536?(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128,o++):(r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128,o+=2)}return new Uint8Array(r)}function m(e){if("object"!=typeof e||null===e||"number"!=typeof e.byteLength)throw new TypeError("Expected input to be an ArrayBuffer");for(var t,n=new Uint8Array(e),r="",o=0;o<n.length;o++)r+=1===(t=n[o].toString(16)).length?"0"+t:t;return r}async function f(e){let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((async e=>{e.replaceWith(await async function(e){let t=document.createElement("script");return["type","text","src","crossorigin","defer","referrerpolicy"].forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e))})),t}async function g(t,r,o){let i=y(d);return await e.subtle.decrypt({name:"AES-CBC",iv:r},t,i.buffer).then((async t=>{const r=(new TextDecoder).decode(t);if(!r.startsWith(a))throw"Decode successfully but not start with KnownPrefix.";const i=document.createElement("button");i.textContent="Encrypt again",i.type="button",i.classList.add("hbe-button"),i.addEventListener("click",(()=>{window.localStorage.removeItem(n),window.location.reload()})),document.getElementById("hexo-blog-encrypt").style.display="inline",document.getElementById("hexo-blog-encrypt").innerHTML="",document.getElementById("hexo-blog-encrypt").appendChild(await f(r)),document.getElementById("hexo-blog-encrypt").appendChild(i),document.querySelectorAll("img").forEach((e=>{e.getAttribute("data-src")&&!e.src&&(e.src=e.getAttribute("data-src"))})),window.NexT&&NexT.boot&&"function"==typeof NexT.boot.refresh&&NexT.boot.refresh();var c=document.getElementById("toc-div");c&&(c.style.display="inline");var l=document.getElementsByClassName("toc-div-class");if(l&&l.length>0)for(var d=0;d<l.length;d++)l[d].style.display="inline";var h=new Event("hexo-blog-decrypt");return window.dispatchEvent(h),await async function(t,n){const r=(new TextEncoder).encode(n);let o=y(u);const a=await e.subtle.verify({name:"HMAC",hash:"SHA-256"},t,o,r);return console.log(`Verification result: ${a}`),a||(alert(s),console.log(`${s}, got `,o," but proved wrong.")),a}(o,r)})).catch((e=>(alert(c),console.log(e),!1)))}!function(){const a=JSON.parse(t.getItem(n));if(a){console.log(`Password got from localStorage(${n}): `,a);const r=y(a.iv).buffer,o=a.dk,i=a.hmk;e.subtle.importKey("jwk",o,{name:"AES-CBC",length:256},!0,["decrypt"]).then((o=>{e.subtle.importKey("jwk",i,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"]).then((e=>{g(o,r,e).then((e=>{e||t.removeItem(n)}))}))}))}i.addEventListener("keydown",(async a=>{if(a.isComposing||13===a.keyCode){const a=document.getElementById("hbePass").value,i=await function(t){let n=new TextEncoder;return e.subtle.importKey("raw",n.encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"])}(a),c=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"])}(i),s=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"AES-CBC",length:256},!0,["decrypt"])}(i),l=await function(t){return e.subtle.deriveBits({name:"PBKDF2",hash:"SHA-256",salt:o.buffer,iterations:512},t,128)}(i);g(s,l,c).then((r=>{console.log(`Decrypt result: ${r}`),r&&e.subtle.exportKey("jwk",s).then((r=>{e.subtle.exportKey("jwk",c).then((e=>{const o={dk:r,iv:m(l),hmk:e};t.setItem(n,JSON.stringify(o))}))}))}))}}))}()})();
package/manifest.json CHANGED
@@ -1 +1 @@
1
- {"name":"Mycpen","short_name":"Mycpen","theme_color":"#ffffff","background_color":"#ffffff","display":"standalone","scope":"/","start_url":"/","icons":[{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/36.png","sizes":"36x36","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/48.png","sizes":"48x48","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/72.png","sizes":"72x72","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/96.png","sizes":"96x96","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/144.png","sizes":"144x144","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/192.png","sizes":"192x192","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/196.png","sizes":"196x196","type":"image/png","purpose":"any maskable"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/pwa/512.png","sizes":"512x512","type":"image/png"}]}
1
+ {"name":"Mycpen","short_name":"Mycpen","theme_color":"#ffffff","background_color":"#ffffff","display":"standalone","scope":"/","start_url":"/","icons":[{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/36.png","sizes":"36x36","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/48.png","sizes":"48x48","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/72.png","sizes":"72x72","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/96.png","sizes":"96x96","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/144.png","sizes":"144x144","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/192.png","sizes":"192x192","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/196.png","sizes":"196x196","type":"image/png","purpose":"any maskable"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-fzugvkbncm/img/pwa/512.png","sizes":"512x512","type":"image/png"}]}