qr-secure-send 1.4.0 → 1.4.1
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/index.html +6 -5
- package/package.json +1 -1
package/index.html
CHANGED
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
<header>
|
|
125
125
|
<h1>QR Secure Send</h1>
|
|
126
126
|
<p>Encrypt and transfer secrets via QR code</p>
|
|
127
|
+
<p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.4.1</p>
|
|
127
128
|
</header>
|
|
128
129
|
|
|
129
130
|
<div class="tabs">
|
|
@@ -356,7 +357,7 @@
|
|
|
356
357
|
// -- QR matrix construction --
|
|
357
358
|
|
|
358
359
|
const ALIGNMENT_POSITIONS = [
|
|
359
|
-
null,[],[], [6,22],[6,26],[6,30],[6,34],
|
|
360
|
+
null,[],[6,18], [6,22],[6,26],[6,30],[6,34],
|
|
360
361
|
[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],
|
|
361
362
|
[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],
|
|
362
363
|
[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],
|
|
@@ -621,15 +622,15 @@
|
|
|
621
622
|
];
|
|
622
623
|
for (let i = 0; i < 15; i++) {
|
|
623
624
|
const [r, c] = positions1[i];
|
|
624
|
-
matrix[r][c] = ((bits >>
|
|
625
|
+
matrix[r][c] = ((bits >> i) & 1) ? 1 : 2;
|
|
625
626
|
}
|
|
626
627
|
|
|
627
|
-
// Bottom-left and top-right
|
|
628
|
+
// Bottom-left and top-right (opposite bit order from first copy)
|
|
628
629
|
for (let i = 0; i < 7; i++) {
|
|
629
|
-
matrix[size - 1 - i][8] = ((bits >> i) & 1) ? 1 : 2;
|
|
630
|
+
matrix[size - 1 - i][8] = ((bits >> (14 - i)) & 1) ? 1 : 2;
|
|
630
631
|
}
|
|
631
632
|
for (let i = 7; i < 15; i++) {
|
|
632
|
-
matrix[8][size - 15 + i] = ((bits >> i) & 1) ? 1 : 2;
|
|
633
|
+
matrix[8][size - 15 + i] = ((bits >> (14 - i)) & 1) ? 1 : 2;
|
|
633
634
|
}
|
|
634
635
|
}
|
|
635
636
|
|