0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

gpgコマンド

Posted at

gpg コマンドのメモ

使用頻度が低くて思い出せないので書き出しておく

 

使用例

[非対話形式] a.txt を暗号化する (パスワードは「password」)

a.txt.gpg が生成される

$ echo "password" | \
    gpg --batch --passphrase-fd 0 --symmetric --cipher-algo AES256 a.txt

 

[非対話形式] a.txt.gpg を解読する (パスワードは「password」)

echo "password"|gpg --batch --passphrase-fd 0 --decrypt a.txt.gpg

 

対話形式で実行したい場合

上記から「--batch --passphrase-fd 0」を削除して実行すれば良い

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?