VB icon

Recover Screen Saver Password

Email
Submitted on: 1/4/2015 6:56:00 PM
By: Vinodh Senthil.T (from psc cd)  
Level: Beginner
User Rating: By 4 Users
Compatibility: C, C++ (general), Microsoft Visual C++, Borland C++, UNIX C++
Views: 1188
 
     Like 2 Recover Your Lost Screen Laver Password using C program ??? To Recover your Lost Screen saver Password with a very little skill in Programming in C, The Programming is only 15 ~ 20 Lines :-)) Enjoy!!!
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :Recover Screen Saver Password
//**************************************
Only the C Program
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: Recover Screen Saver Password
// Description:Like 2 Recover Your Lost Screen Laver Password using C program ??? To Recover your Lost Screen saver Password with a very little skill in Programming in C, The Programming is only 15 ~ 20 Lines :-)) Enjoy!!!
// By: Vinodh Senthil.T (from psc cd)
//
// Inputs:Only Click Enter
//
// Returns:U Get what u wanted :-)
//
// Assumes:Anyone with a very little knowledge or Skill in C can understand this Coding
//
// Side Effects:No Side Effects
//**************************************

#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<process.h>
void main()
{
FILE *stream;
char string[] = "creenSave_Data";
char msg[16],ch,pass[27];
int i=1,found=1,j,dec[]={4,8,14,14,7,6,1,13,6,7,6,9,10,1,1,11,7,10,8,12,4,7,15,8,5,4,9,5};
int pass1[27];
clrscr();
printf("--------This program is developed by VINOD SENTHIL.T -------------\n\n\n\n");
printf("\n\nContact ---------> vinod_chan_t@yahoo.com <-----------\n\n\n\n");
stream = fopen("C:\\WINDOWS\\USER.DAT", "rb");
if (stream==NULL)
 {
printf("Cannot open the file");
getch();
exit(1);
 }
	while(found)
	{
	 while ((getc(stream))!='S')
	{};
	 fgets(msg, strlen(string)+1, stream);
	 i=strcmp(string,msg);
	 if (i==0) found=0;
	 }
while(!found)
 {
 ch=getc(stream);
 if (!(isalpha(ch) || isdigit(ch)))
	 found=1;
 else
	 {
	pass[i]=ch;
	i++;
	 }
 }
 for(j=0;j<i;j++)
 {
 if (isalpha(pass[j]))
	pass1[j]=pass[j]-55;
 else
	pass1[j]=pass[j]-48;
 pass1[j]=pass1[j]^dec[j];
 }
 printf(" Your Screen Saver Password is : ");
 for (j=0;j<i;j+=2)
	printf("%c",toascii(16*pass1[j]+pass1[j+1]));
fclose(stream);
getch();
}
//Please Vote for my Program :-)


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.