encryption - Java JCE Encrypt Folders? -


is possible encrypt entire folders java's jce library. folders contain other folders/files if problem. don't know jce is, stands java cryptography extension , used encryption in java.

no. can't encrypt entire folders java's jce library. it's not hard zip first though using stream wrapper zipinputstream , zipoutputstream. since don't care file size reduction, use jtar. make easy tar folder after can encrypted jce other file.

i make class called public class folderencrypter methods public byte[] encryptfolder( file folder ) , public file decryptfolder( public byte[] ). easy reuse throughout code whenever need it.


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -