Add on-demand decryption

This commit is contained in:
Xpl0itU 2023-07-19 12:55:52 +02:00
parent 1d7d850674
commit 20098cdb2e
3 changed files with 31 additions and 2 deletions

View file

@ -22,7 +22,7 @@ var (
decryptionError = false
)
func decryptContents(path string, progress *ProgressWindow, deleteEncryptedContents bool) error {
func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedContents bool) error {
wg.Add(1)
progressInt := 1
go runDecryption(path, &progressInt, deleteEncryptedContents)