Script do PowerShell para descriptografar o arquivo

0

Alguém pode me ajudar com este comando para descriptografar arquivos usando o powershell?

echo YOURpassPHRASE | gpg --keyring "C:\directory\filepath" --secret-keyring "C:\directory\filepath" --batch --yes --passphrase-fd 0 -o DesiredOutputFileName -d TargetEncryptedFile

O que as seguintes opções significam?

--keyring "C:\directory\filepath"

--secret-keyring "C:\directory\filepath"

    
por Ealhiary 21.04.2015 / 15:14

1 resposta

1

O que significam as seguintes opções?

--keyring "C:\directory\filepath"
--secret-keyring "C:\directory\filepath"

As opções estão documentadas no manual do gnupg .

4.2.1 How to change the configuration

These options are used to change the configuration and are usually found in the option file.

...

--keyring file

Add file to the current list of keyrings. If file begins with a tilde and a slash, these are replaced by the $HOME directory. If the filename does not contain a slash, it is assumed to be in the GnuPG home directory (~/.gnupg if --homedir or $GNUPGHOME is not used).

Note that this adds a keyring to the current list. If the intent is to use the specified keyring alone, use --keyring along with --no-default-keyring.

--secret-keyring file

This is an obsolete option and ignored. All secret keys are stored in the private-keys-v1.d directory below the GnuPG home directory.

Fonte Opções de configuração do GPG

    
por 21.04.2015 / 15:40