chore: decodeURIComponent of encryption key when entered manually
This commit is contained in:
parent
75bc984a8b
commit
32c9a062c4
@ -206,7 +206,10 @@ export const SignPage = () => {
|
|||||||
if (!selectedFile || !encryptionKey) return
|
if (!selectedFile || !encryptionKey) return
|
||||||
|
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
const arrayBuffer = await decrypt(selectedFile, encryptionKey)
|
const arrayBuffer = await decrypt(
|
||||||
|
selectedFile,
|
||||||
|
decodeURIComponent(encryptionKey)
|
||||||
|
)
|
||||||
|
|
||||||
if (!arrayBuffer) return
|
if (!arrayBuffer) return
|
||||||
|
|
||||||
@ -478,11 +481,6 @@ export const SignPage = () => {
|
|||||||
placeholder='Select file'
|
placeholder='Select file'
|
||||||
value={selectedFile}
|
value={selectedFile}
|
||||||
onChange={(value) => setSelectedFile(value)}
|
onChange={(value) => setSelectedFile(value)}
|
||||||
InputProps={{
|
|
||||||
inputProps: {
|
|
||||||
accept: '.zip'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{selectedFile && (
|
{selectedFile && (
|
||||||
|
Loading…
Reference in New Issue
Block a user