So I currently have my router set up as a sftp server, the only way to access the server from wan is to vpn into the router and then start the sftp connection. however I want to add one more layer of protection and use file encryption as I usually transmit sensitive info over the connection. Is there any way to set up a PGP encryption for the files on the server? I cant seem to find anything regarding this?
opkg list | grep gnupg
I have not used it.
Are you looking to do the PGP key dance or just something like a symmetric key?
Could do this:
opkg install openssl-util root@OpenWrt:~# cat ssn.txt my SSN is 409-52-2002 root@OpenWrt:~# root@OpenWrt:~# openssl aes-256-cbc -a -salt -pbkdf2 -in ssn.txt -out ssn.encrypted enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: root@OpenWrt:~# cat ssn.encrypted U2FsdGVkX1+4Y1u8zKLalWruQQ6b5Q3ydgl7WtJHmI5QZ/BjSN5szEYjJg2Z5Zax root@OpenWrt:~# openssl aes-256-cbc -d -a -pbkdf2 -in ssn.encrypted -out ssn.new enter aes-256-cbc decryption password: root@OpenWrt:~# cat ssn.new my SSN is 409-52-2002
GnuPG was what I was looking for, thanks!