Monday, March 25, 2013

C++ Caesar Cipher File encryption and decryption program source code

C++ program for encrypting and decrypting any file using Caesar cipher and any key entered by the user.

You may even use this as an assignment or mini project in B. Tech. or network security subject by adding little gui and improving the source code.  Feel free to use, modify and share the code... Knowledge is always free !!!
 #include<iostream.h>  
 #include<conio.h>  
 #include<fstream.h>  
 class Caesar  
 {  
     public: void encrypt(char *inp,char *out,int key);  
             void decrypt(char *inp,char *out,int key);  
             void readText(char *inp);  
 };  
 void Caesar::encrypt(char *inp,char *out,int key)  
 {  
     ifstream input;  
     ofstream output;  
     char buf;  
     input.open(inp);  
     output.open(out);  
     buf=input.get();  
     while(!input.eof())  
     {  
         if(buf>='a'&&buf<='z')  
         {  
             buf-='a';  
             buf+=key;  
             buf%=26;  
             buf+='A';  
         }  
         output.put(buf);  
         buf=input.get();  
     }  
     input.close();  
     output.close();  
     readText(inp);  
     readText(out);  
 }  
 void Caesar::decrypt(char *inp,char *out,int key)  
 {  
     ifstream input;  
     ofstream output;  
     char buf;  
     input.open(inp);  
     output.open(out);  
     buf=input.get();  
     while(!input.eof())  
     {  
         if(buf>='A'&&buf<='Z')  
         {  
             buf-='A';  
             buf+=26-key;  
             buf%=26;  
             buf+='a';  
         }  
         output.put(buf);  
         buf=input.get();  
     }  
     input.close();  
     output.close();  
     readText(inp);  
     readText(out);  
 }  
 void Caesar::readText(char *inp)  
 {  
     ifstream input;  
     char buf;  
     input.open(inp);  
     cout<<"\n\n <--- "<<inp<<" --->\n";  
     buf=input.get();  
     while(!input.eof())  
     {  
         cout<<buf;  
         buf=input.get();  
     }  
     input.close();  
 }  
 void main()  
 {  
     Caesar a;  
     int choice,key;  
     char inp[30],out[30];  
     clrscr();  
         cout<<"\n Enter input file: ";  
         cin>>inp;  
         cout<<"\n Enter output file: ";  
         cin>>out;  
         cout<<"\n Enter key: ";  
         cin>>key;  
     cout<<"\n\n 1. Encrypt\n 2. Decrypt\n\n Select choice(1 or 2): ";  
     cin>>choice;  
     if(choice==1)  
         a.encrypt(inp,out,key);  
     else if(choice==2)  
         a.decrypt(inp,out,key);  
     else  cout<<"\n\n Unknown choice";  
     getch();  
 }  

Wednesday, March 20, 2013

MBRadio.FM : Latin Music app with Social Touch


MBRadio.FM is lets you hear your favorite Latin music while you are chatting with your friends at Facebook on your android device. MBRadio.FM is a simple to use android application with very smooth navigation and an excellent user interface. The app has got over hundred reviews at Google play with an average rating of 4.6/5. MBRadio.FM provides best and latest songs you would ever hear for free. 


Best part is that application can run on any device with android 2.1 or higher and is just 3.5 MB in size.  This application is perfect for parties and live shows. You can browse on Facebook and Twitter while listening to your favorite music on the app. It allows you to chat with new people all over the world and make friends.

MBRadio.FM can be downloaded from Google play using the link given below


Or scan this QR Code using your smartphone to visit the download page of MBRadio.FM


Monday, March 4, 2013

Yamgo Free Mobile TV Android : App Review





I've tried lots of online TV apps, but still Yamgo TV is really far better than any other app in the Market! App has over hundred thousand downloads and an average rating of 4.1 at Google Play. Yamgo TV is a free app and you need not to install any additional plug-in to use it. Videos streams smoothly and you can enjoy watching Television for a long time without feeling shaky.


Watch Live Streaming TV on your Mobile for Free : Yamgo TV Android App

Yamgo allows you to watch over hundred TV channels for free directly from your mobile phone or any smart device with an internet connection. TV Channels are well organized in 6 different categories including Entertainment, Live News, Bollywood, Fashion, Movies, Music and Sports. Using Yamgo TV you can watch some of your favorite channels including Sony Sub, Sahara One, Aaj Tak, B4U, 9XM, 9X Tashan and Zing. Now never miss any episode of your favorite shows. Watch live TV on go using Yamgo TV App.  Yamgo allows you to watch TV from any part of world. App is well connected with major social networking sites including Facebook, Google Plus, Twitter etc. and allows you to share what you are watching with your friends through your social profiles.

Yamgo TV app is available for free download at Google Play. Click here to download the app or scan this QR code using your smart phone.

Thumps up to the developers, keep up the good work!