chore: decodeURIComponent of encryption key when entered manually

This commit is contained in:
SwiftHawk 2024-05-15 16:25:21 +05:00
parent 75bc984a8b
commit 32c9a062c4

View File

@ -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 && (