ya got u. But we've written code nd we've given some input to check whether security is working. The code is working perfectly using rijndael algorithm oly thing is we need to link that encryption and decryption algorithm to windows folder.. Can u suggest me?
Please read my previous answer. You cannot do this at the application level, you can only do it by adding a filter driver to the filesystem. And that can only be done in a native language such as C/C++ or Assembler.
Presumably as a school project it is sufficient to encrypt files within a folder not the entire folder.
You can control this via java via the following process.
- FIND a command line utility (run via the console window NOT a UI/GUI app).
- Learn how to use that tool, by figuring out how to encrypt/decrypt and pay attention to the OUTPUT.
- After the above two steps then learn how to use Java java.lang.Process or Runtime.exec(). They are basically the same thing. Using these will REQUIRE using threads. If you are not using threads then you are not going to succeed.
- After you learn java.lang.Process then you can use it to run the tool above within your java application.
The JVM is the key player here... it is going to execute your program... so public static void main is like an accessibility option for the JVM...
public ==> so that the jvm can access your program/class from any where (since it is public as the name suggests)... change it to private and your program wont work... because the jvm cannot access private stuff... and if the jvm cant access the class/program it cant execute it
static ==> so that the jvm does not need to create an object for your class to run your program
void ==> your main function is not going to return any value to the jvm
main ==> this is like the cue music to the jvm... this is the stating point of your program... this is the function that your jvm calls so as to execute your program