C++ :: Password Program That Receives 10 Letters Only

Jan 21, 2015

So I need to make a program that recieves a 10 letter only password, then once the password is entered, it starts off as AAAAAAAAAA...AAAAAAAAAB...AAAAAAAAAC...etc, Until it gets the correct password, which it then stops. This is for a science fair project on cyber security not for malicious purposes ...

View 2 Replies


ADVERTISEMENT

C++ :: Password Hacking - Letters To Numbers

Dec 25, 2014

Okay, so I have a science fair project and I decided on doing a series of programs that show the simpleness behind hacking a password. Each program increases in complexity starting with a four digit password, and ending with a 10 digit letter and number combo that is case sensitive. Right now I need to figure out a way to have my program be able to convert chars into ints, so that I can do a counter and then I also need to be able to convert the ints, back into chars.

View 19 Replies View Related

C :: Program That Receives One Positive Integer And Display

Dec 28, 2013

Constructing this right aligned half pyramid? The code I had so far is right aligned and they're not in numbers

Write a program that receives one positive integer and display

_________ _ 1
________ 4 2
_______9 6 3
___16 12 8 4
25 20 15 10 5

when the user key in 5.PS: ignore the line

View 3 Replies View Related

C/C++ :: Implementing Program That Sends And Receives Raw Ethernet Frames

Apr 15, 2013

I am fairly new to the topic of the ethernet and the data link layer and I am trying to write a C program which allows the sending and receiving of ethernet frames.

I am trying to have my program send the ethernet frame to myself, so the program will have the same source and destination mac addresses.

The program that I'm using is a modified version of the code from [URL] ....

I keep having trouble with the recvfrom() function, it seems to just be blocking and the program doesn't terminate. From the code, I am trying send the ethernet frame and have the recvfrom() function be able to retrieve the frame and store it in a buffer. But because recvfrom() function is just blocking, it seems to me that the sendto() function was not able to successfully send the frame.

Here is my code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>    /* Must precede if*.h */
#include <linux/if.h>
#include <linux/if_ether.h>

[Code] ....

This is on a linux machine ....

View 2 Replies View Related

C++ :: Program That Asks For Password When Try To Open A File

Feb 14, 2015

I am trying to make a program that asks for password when you try to open a file.

I tried with that, obviously without success...

#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main () {
ifstream file("test.txt");
string password;

[Code] .....

View 7 Replies View Related

C++ :: Password Verification Program - Assertion Error

Aug 23, 2014

I am trying to build a program that takes a user password (6+ characters, One uppercase, one lower case, and one number), and checks for errors. The idea is that if the user is doing something wrong (say, forgetting to use an uppercase letter), the program will tell them what the error is, and prompt them to enter the program again.

I get through the building process without errors, but whenever I run the program, I get this error: [URL] ....

Here is my code:

#include <iostream>
#include <cctype>
using namespace std;
bool checkPass(char [], int); //Password Checking Function
char convert(string);

[Code] ....

According to the box, the error appears on line 56 and 68.

View 5 Replies View Related

C/C++ :: Write A Program To Check The Password Strength

Apr 17, 2015

add more code given bellow program that means (( you can input a password and the output checking the password is valid or not and also the password is hard or weak)) the program,s output show....the given password is too strong or strong or weak and also check the password is valid

View 2 Replies View Related

C++ :: Program To Input Password - Press Enter Only Once?

Jan 16, 2013

Code:
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main() {
clrscr();
int i=0,flag=1;
cout<<"Enter the password.";

[Code] ....

When I input the password, the Backspace and the Enter keys are not working as they should. Also, I want to know if I can press enter only once to input the password, not twice.

Compiler is Turbo C++ 3.0 on Windows 7.

View 1 Replies View Related

C++ :: Create Password Check Program That Makes Sure That Rules Are Followed

Feb 27, 2014

I am new to C++ and am stuck on a program. I've got to create a password check program that makes sure the password rules are followed. Below is the code and the rules i have typed in the comments at the beginning of the program. I have to use loops and cant use arrays for this.

#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main() {
//Prompt user to entered a password to be tested
cout << "Password must be at least 8 characters long." << endl;

[Code] .....

View 2 Replies View Related

C/C++ :: Error In Basic Username / Password Verification Program

May 16, 2014

I tried to build a basic username-password verification program; I already have 2 text documents, usr.txt and pass.txt in which username and password are stored. Then have written this program to check the username and password, but every time it says Access Denied.

Here's what I have written:

#include<stdio.h>
#include<conio.h>
void main()

[Code].....

View 6 Replies View Related

C/C++ :: Login Program That Reads Username And Password From Text File

Feb 14, 2015

I am trying to make a simple login program that reads username and password from a text file.

In my text file I have:

name1;pass1
name2;pass2
name3;pass3
name4;pass4
name5;pass5

Everything is working okay with name1 and pass1, but if I try to log in with different credentials, for example name2 and pass2 it says "invalid details"

Here is my code:

string user, chuser;
string pass, chpass;
string los;
ifstream loginData("logindata.txt");
cout << "Please type in your username:" << endl;
getline(cin, user);

[code].....

View 5 Replies View Related

C++ :: Dynamic Password Guessing Program - Conflict Between Data Types

Mar 17, 2015

I'm trying to develop a deeper knowledge of how loops work (and what better way todo that than a dynamic password guesser). My main problem lies with the conflict between data types, as I try to point to a char at a specific index position of the password guess.

See in my code (at line 57):

Code:
#include <iostream>
#include <iterator>
#include <algorithm>
#include <string>
#include <cstdlib>
#include <iomanip>
using namespace std;
string AlphaNum("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");//62 possible characters
int size = AlphaNum.length();//should be 62

[Code] ....

This is annoying, because strings are arrays of characters themselves.

View 14 Replies View Related

C++ :: A Program To Print Big Letters?

Nov 28, 2013

I need help writing a program where I use small letter to write names in Big letters. (I dont know if you understand what i mean). Follow link to description.

[URL]

View 6 Replies View Related

C :: Program To Print Letters In Given Notation

Feb 11, 2014

I have to develop script in C to print the alphabets in given notation.

Please check the attachment.

View 4 Replies View Related

C :: Doing Program With If Statement That Recognizes Letters

Oct 15, 2013

Im still new to this but i dont quite understand whats wrong with this code

Code:
#include <stdio.h>
int num1, num2, num3;
char resp;
int main()
{
printf("Quer os seus numeros em ordem crescente ou decrescente?

[Code] ....

It is in portuguese but the thing is, when i type the C when it asks for the response it still reads as if it was D the response

View 5 Replies View Related

C++ :: Program To Stop If Letters Entered Other Than A / B Or C

Apr 15, 2014

I am new to c++ programming, and I wrote this program. It runs perfectly but the problem is I want the program to stop If I entered letters other than A,B or C

The code as follows:

#include <cstdlib>
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std ;
int main() {
// Deceleration Statements

[Code] ....

View 6 Replies View Related

C/C++ :: Server Receives Corrupted Data

Feb 27, 2014

I have a problem with this work. It is that when the server send some data to the client it send them correctly but when they arrive to the client all the info are changed and i don't know why, because i print them before the send and they are right, but after they arrive to the client the data doesn't be the same.

here it is the server and client's code. In the code there are some italian words, but there are only constant, so there is a real problem to understand the code.

Server

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#define FLUSH while(getchar()!='

[code]....

the problem is in the line 136 of the server and on the line 203 of the client

View 7 Replies View Related

C :: Program That Counts Letters Of 3 Lines Of Input From User

May 26, 2013

So I am writing a program that counts the letters of 3 lines of input from the user. I am using a 3 x 80 character array as the "notepad". Upper and lower case characters are incremented on the same counter array.

Code:

/*Letters in a string*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
void countAlphabet(char *);
/*Character counting array*/
int alphabet[26] = {0};

[Code]...

View 3 Replies View Related

C++ :: Write A Function That Receives Two Arrays Of Integers

Feb 19, 2013

There is one question :

Considerint A[10]={ ....................}; // already filled
int B[10]={ ....................}; // already filled

Using PIONTER NOTATION ONLY, write a function that receives two arrays of integers like A and B above. The function should swap the values in A and B. You may NOT use array notation [ ]. Also, you have to use pointers to move among array cells. Note: Both arrays are of the same size, and size should be variable in the function.

View 3 Replies View Related

C++ :: Function To Receives Integer Array Along With Its Length

Apr 2, 2014

How to write a function that receives an integer array along with its length. the function calculates and returns the sum of the squares of all the odd numbers in the array?

View 2 Replies View Related

C++ :: How To Use Backspace In Password

May 17, 2014

[URL]

#include <iostream>
#include <string>
#include <conio.h>

[Code].....

the code use in above link is good but one problem i cant able to use backspace to remove mistake if user made any mistake he cant able to remove the mistaken character

View 2 Replies View Related

C :: Comparing Password With Strcmp

Oct 7, 2013

I'm a novice with C programming and i have to solve an error in the following code. The code works like you enter a password called "uoc" and it shows as OK. But surprisely when you entered another password as "Cambridge" it works fine too.

I think that the problem is in the array declaration but i'm checking resources and no success!

Code:
#include <stdio.h>
#include <string.h>
struct {
char str[8];
char ok;
} data;

[Code] ......

View 3 Replies View Related

C :: Reading Password From A File

Jan 10, 2015

I am trying to read a "password" from a file, the file only contains the password... Here is my code:

int i=0, ch;
char password[25];
FILE *fp = fopen("C:UsersOlintoDocumentsNetBeansProjects est.txt", "r");
if (fp == NULL)
printf("Erro ao Abrir");

[Code] ....

puts(password); When I read the string password, it outputs -> abcd123"

I don't know where it takes the (") because the password on the file is abcd123...

View 2 Replies View Related

C++ :: Username And Password Verification?

Jun 7, 2014

this is really important i searched an example code about "Username and Password Validation between Server and Client" through internet a LOT and i couldn't find anything..

View 3 Replies View Related

C++ :: How To Create Login ID And Password

May 30, 2014

"How to create login id and password" because i have to submit this assignment next weeks i dont know how to using passing by value or reference corectly/

For the Ouput its say this :

1>ClCompile:
1> GILA DAH!!.cpp
1>d:computer programmin ditg 1113jiwa ku sakitjiwa ku sakitGILA DAH!!.cpp(21): error C2664: 'strlen' : cannot convert parameter 1 from 'char' to 'const char *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>
1>Build FAILED.

#include <iostream>
#include <string>
using namespace std; //introduces namespace std
void length(char[]);

[Code]...

View 1 Replies View Related

C++ :: Masking And Attempts On Password

Sep 9, 2013

Ive been working on a program that can mask the password and has 3 attempts. So far I can't do both at the same time. Here is my work. How can I do both?

#include<iostream>
#include<string.h>
#include<conio.h>
using namespace std;
int main() {
string _pass;
char input;

[Code] .....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved