GnuPG


GPG는 RSA 암호 기술을 이용
```typesudo apt install gnupg```

- for enough entropy
```typesudo apt install rng-toolssudo rngd -r /dev/urandom```


- daemon
```typegpg-agent --daemon --use-standard-socket --pinentry-program /usr/bin/pinentry-curses```



```typegpg --full-generate-key# rsa and rsa# 4096# 0```

> [Unable to generate gpg keys in linux](https://stackoverflow.com/questions/28802525/unable-to-generate-gpg-keys-in-linux)

```typegpg --export -a -o seonglae sungle3737@gmail.com```
```typegpg --export-secret-keys YOUR_ID_HERE > private.key```
```typegit config --global gpg.program "GPG 클라이언트 프로그램의 위치"```

[git commit sign gpg](https://texonom.com/git-commit-sign-gpg-76f3f89a88174a90917ec18cc7dfef67)


> [GnuPG 사용법](https://johngrib.github.io/wiki/gpg/)

> [암호의 암도 몰라도 쉽게 하는 GPG](https://librewiki.net/wiki/%EC%8B%9C%EB%A6%AC%EC%A6%88:%EC%95%94%ED%98%B8%EC%9D%98_%EC%95%94%EB%8F%84_%EB%AA%B0%EB%9D%BC%EB%8F%84_%EC%89%BD%EA%B2%8C_%ED%95%98%EB%8A%94_GPG)

> [GitHub) 내가 한 커밋에 서명(sign)을 하는 방법](https://slaner.tistory.com/176)


```typegpg --list-keys```
```typegpg --import private.key```


```typegit config --global gpg.program gpg  # perhaps you had this already? On linux maybe gpg2git config --global commit.gpgsign true  # if you want to sign every commit```
> [Untitled](https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0)



```typegpg --delete-key {{id}}gpg --delete-secret-key {{id}}```

> [GPG: Remove keys from your public keyring?](http://blog.chapagain.com.np/gpg-remove-keys-from-your-public-keyring/)






