Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # decrypt
- cat <encryptedfile> | openssl rsautl -decrypt -inkey ~/.ssh/id_rsa
- # encrypt
- cat <filetoencrypt> | openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa > <destinationfile>
- # to base64
- openssl enc -base64 -in fartpass.txt -out fart.base64
- # to encrypt
- openssl enc -d -base64 -in fart.base64 -out myfile.decrypt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement