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
|
||||
|
||||
setIsLoading(true)
|
||||
const arrayBuffer = await decrypt(selectedFile, encryptionKey)
|
||||
const arrayBuffer = await decrypt(
|
||||
selectedFile,
|
||||
decodeURIComponent(encryptionKey)
|
||||
)
|
||||
|
||||
if (!arrayBuffer) return
|
||||
|
||||
@ -478,11 +481,6 @@ export const SignPage = () => {
|
||||
placeholder='Select file'
|
||||
value={selectedFile}
|
||||
onChange={(value) => setSelectedFile(value)}
|
||||
InputProps={{
|
||||
inputProps: {
|
||||
accept: '.zip'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
{selectedFile && (
|
||||
|
Loading…
Reference in New Issue
Block a user