Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to encrypt and decrypt a text file using openssl rsa public and private keys

openssl rsautl -encrypt -pubin -inkey public_key.pem -in secret.txt -out secret.enc
#where "secret.txt" is the original file and "secret.enc" is the encrypted file.

# To decrypt
openssl rsautl -decrypt -inkey private_key.pem -in secret.enc
Comment

PREVIOUS NEXT
Code Example
Shell :: install vim in vs 
Shell :: reset git file 
Shell :: how to install npm packages globally 
Shell :: rebase branch github 
Shell :: git rebase feature branch 
Shell :: bash read value 
Shell :: linux terminal show installed applications 
Shell :: uname 
Shell :: raspberry pi remote desktop 
Shell :: bash here document example 
Shell :: bash get files older than 
Shell :: wsl export 
Shell :: url_launcher 
Shell :: git flow feature 
Shell :: copy files from windows to wsl2 ubuntu 
Shell :: how to move folders in linux terminal 
Shell :: pretty print csv ubuntu terminal 
Shell :: uninstall R 
Shell :: small size centos7 gui 
Shell :: ubuntu set deepin terminal as default 
Shell :: restart nginx windows 
Shell :: bash find text in all csv files 
Shell :: set up django-lint 
Shell :: share folder from windows to ubuntu oracle VM 
Shell :: what is guthub 
Shell :: install firefox redhat 7 
Shell :: raid 0 
Shell :: install joplin using snap 
Shell :: i am not able to start bluetooth in ubantu 
Shell :: find largest digit in a number 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =