Skip to content

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

Notifications You must be signed in to change notification settings

pzanella/PGPEncryptDecryptFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages