Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PGPEncryptDecryptFiles

Spring Boot app which using Bouncy Castle library to encrypt and decrypt files.

Instructions to generate public and secret key to encrypt/decrypt files or messages:

  • install "GnuPG (aka PGP/GPG)":

      $ sudo apt-get install gnupg 
      $ sudo apt-get install rng-tools 
      $ sudo sed -i -e 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/urandom|' /etc/default/rng-tools 
      $ sudo service rng-tools start
    
  • generate a key:

      $ gpg --gen-key
    
  • to view all keys:

      $ gpg --list-keys
    
  • export a public key:

      $ gpg --export -a --output [path-to-public-key].asc [email-address]
    
  • export a secret key:

      $ gpg -a --export-secret-keys > [path-to-secret-key].asc
    

More informations @ Installing and Using PGP

About

Spring Boot app which using Bouncy Castle library to encrypt and decrypt files (see JUnit test).

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages