mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
spread Uint8Arrays
This commit is contained in:
parent
2551462003
commit
358311e8ac
@ -57,13 +57,7 @@ export const encryptArrayBuffer = async (
|
||||
|
||||
const prefix = new TextEncoder().encode("Salted__");
|
||||
|
||||
const res = new Uint8Array(
|
||||
[
|
||||
...prefix,
|
||||
...salt,
|
||||
...new Uint8Array(enc)
|
||||
]
|
||||
);
|
||||
const res = new Uint8Array([...prefix, ...salt, ...new Uint8Array(enc)]);
|
||||
|
||||
return bufferToArrayBuffer(res);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user