This commit is contained in:
TheK4n 2022-01-03 03:22:52 +03:00
parent d6de64859d
commit cd62a05fa4
2 changed files with 6 additions and 4 deletions

View File

@ -112,6 +112,8 @@ autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isT
nnoremap <silent> <special> <F3> :NERDTreeToggle <CR> nnoremap <silent> <special> <F3> :NERDTreeToggle <CR>
" ctags required
nnoremap <silent> <special> <F8> :TagbarToggle <CR> nnoremap <silent> <special> <F8> :TagbarToggle <CR>

View File

@ -12,9 +12,9 @@ echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > ~/.gnupg/gpg-agent.conf; echo R
4. ```gpg -seaR "john" -u "thek4n" file``` -s sign, -e asymmetric, -a ASCII, -R ciphered receiver, -u secret key 4. ```gpg -seaR "john" -u "thek4n" file``` -s sign, -e asymmetric, -a ASCII, -R ciphered receiver, -u secret key
### Decrypt ### Decrypt
4. ```gpg --import public.key``` 1. ```gpg --import public.key```
5. ```gpg --fingerprint "thek4n"``` (check fingerprint) 2. ```gpg --fingerprint "thek4n"``` (check fingerprint)
7. ```gpg -d --try-secret-key "john" file.asc > res.txt``` 3. ```gpg -d --try-secret-key "john" file.asc > res.txt```
### Sign message (one file) ### Sign message (one file)
enc: ```gpg -u "thek4n" --clear-sign -s file``` -u secret key, --clear-sign ascii\ enc: ```gpg -u "thek4n" --clear-sign -s file``` -u secret key, --clear-sign ascii\