fix: entropy on crypt creation

This commit is contained in:
Eli Bosley
2025-05-23 20:55:41 -04:00
parent f0c26b777f
commit 8befa23b4d

View File

@@ -60,11 +60,12 @@ const confirmDelete = (remote: string) => {
};
const openCryptModal = (remote: { name: string, type: string }) => {
const entropy = Math.random().toString(36).substring(2, 8);
selectedRemote.value = remote;
initialFormState.value = {
configStep: 0,
showAdvanced: false,
name: `${remote.name}-crypt`,
name: `${remote.name}-crypt-${entropy}`,
type: 'crypt',
parameters: {
remote: `${remote.name}:`,