Initial migration from GPG to RCW

This commit is contained in:
2025-05-04 17:41:44 -04:00
parent a95bff8ef4
commit 649b60e2fe
17 changed files with 51 additions and 123 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ import (
)
// CopyArgument copies a field from an entry to the clipboard.
func CopyArgument(targetLocation string, field int) {
func CopyArgument(targetLocation string, field int, passphrase []byte) {
if isFile, _ := TargetIsFile(targetLocation, true, 2); isFile {
decryptedEntry := DecryptGPG(targetLocation)
decryptedEntry := DecryptFileToSlice(targetLocation, passphrase)
var copySubject string // will store data to be copied
// ensure field exists in entry