Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this is the first scratch of the file... It will be edited later. I just statr using linux daily
- # on laptop. check later for new commands or tips
- # generate 100MB lenght file with random content
- dd if=/dev/urandom of=~/random_data.bin bs=1024 count=$[1024*100]
- # export public key in gpg to external file
- # You must entry unique identifier of generated key. It can be for exampe email
- # Best choice how to read ID is use "gpg --list-keys". Unique indetifier can be
- # after key type.
- #Example
- gpg --list-keys
- # Output
- #pub rsa4096/EC7C1AB7 2014-11-26 [expires: 2016-11-25]
- #uid Real Name (Description) <Email>
- #sub rsa4096/4E2E722F 2014-11-26 [expires: 2016-11-25]
- # In this case, unique identifier for public part is EC7C1AB7 and 4E2E722F for private part
- # So you can export the key
- gpg --export EC7C1AB7 > ~/unique_identifier.pub
- # for export public key and
- gpg --export-secret-key -a 4E2E722F > ~/arcticfox@post.cz.pub
- # for export private part. You will be asked for passphrase if you want export private part
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement