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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -