Fixed and improved encryption handling. Also wrapping up for the day.
This commit is contained in:
@@ -101,7 +101,7 @@ export let decrypt_wrapper = async function decrypt_wrapper(
|
||||
) {
|
||||
if (!combined) {
|
||||
console.error('No combined string provided. Returning empty string.');
|
||||
return '';
|
||||
return false;
|
||||
}
|
||||
const { iv, base64 } = split_iv_and_base64(combined);
|
||||
let decrypted;
|
||||
@@ -114,7 +114,7 @@ export let decrypt_wrapper = async function decrypt_wrapper(
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Decryption failed:', error);
|
||||
return '';
|
||||
return false;
|
||||
}
|
||||
return decrypted;
|
||||
}
|
||||
Reference in New Issue
Block a user