Calling GnuPG in Java via a Runtime Process to encrypt and decrypt files - Decrypt always hangs

前端 未结 7 1456
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 16:25

NOTE: Coming back to this later as I\'ve been unable to find a working solution. Draining the input streams manually instead of using BufferedReaders doesn

7条回答
  •  礼貌的吻别
    2021-01-18 16:48

    It worked for me when i replace the decrypt command with below command

    gpg --output decrypted_file --batch --passphrase "passphrase goes here" --decrypt encrypted_file
    

提交回复
热议问题