@@ -22,9 +22,6 @@ public static void main(String[] args) {
2222 String src ="" ,enc ="" ,dec ="" ,key ="" ;
2323
2424 System .out .println ("\t Welcome to encryptor!!! \n \t --secure your files--\n =====================================\n " );
25-
26-
27- // System.out.println("Key is = "+key);
2825 String ch ="" ;
2926 do {
3027
@@ -35,37 +32,6 @@ public static void main(String[] args) {
3532 System .out .print ("Enter decrypted file path: " );
3633 dec =sc .nextLine ();
3734
38- // switch(choice)
39- // {
40- // // for Text Files
41- // case 1: src = "g:/sample/sampleText.txt";
42- // enc = "g:/sample/encryptedFile.txt";
43- // dec = "g:/sample/decryptedFile.txt";
44- // break;
45- //
46- // // for Image Files
47- // case 2: src = "g:/sample/sample_img.jpg";
48- // enc = "g:/sample/encryptImg.jpg";
49- // dec = "g:/sample/decrpytImg.jpg";
50- // break;
51- //
52- // // for Audio Files
53- // case 3: src = "g:/sample/sampleAudio.m4a";
54- // enc = "g:/sample/encryptedAudio.m4a";
55- // dec = "g:/sample/decryptedAudio.m4a";
56- // break;
57- //
58- // // for Video Files
59- // case 4: src = "g:/sample/sample.mp4";
60- // enc = "G:/sample/encryptVid.mp4";
61- // dec = "G:/sample/decryptVid.mp4";
62- // break;
63- //
64- // default:
65- // System.out.println("Invalid Choice");
66- //
67- // }
68-
6935// =========================================================================
7036// Establishing connection to the database
7137 String user = "root" ;
@@ -107,11 +73,6 @@ public static void main(String[] args) {
10773
10874// ==========================================================================
10975// Retrieving enc file from the database
110- // System.out.print("Enter key to Decrypt : ");
111- // String dkey=sc.nextLine();
112- // if(!dkey.equals(key)){
113- // System.out.println("Incorrect Key");
114- // }
11576
11677 PreparedStatement ps_stmt = conn .prepareStatement ("select data from filetable where filename=?" );
11778 ps_stmt .setString (1 , src );
0 commit comments