|
|
Question : encrypted and decryped msword doc file through Java Code, decrytped file is not opening in msword application
|
|
In Java on Windows 2000 Server , I have written a program to encrypt and decrypt the ms word doc file, msword doc file is encrypted and later on decrypted successfully, suppose if I am encrypting the example.doc file, I have given a name "example.enc" for encrypted file and while decrypting I have given name "example.dec" for decrypted file. My problem is to open a decrypted file in ms word application and decryped file size very from the orginal one. while trying to open decryped file in msword, it gives error message regarding to unrecognized format ..
Is there any solution to convert decrypted file to msword doc file with java source code or any other solutions? Help me!
|
Answer : encrypted and decryped msword doc file through Java Code, decrytped file is not opening in msword application
|
|
Your encryption/decryption algorithm does not seem to work properly: an encryption-decryption process should result with exactly the same file at the end as at the beginning. Which algorithm do you use for that ?
|
|
|
|
|