hey i'm just learning does the sleep function freeze the user for 'x' milliseconds? also the int main void, what's the purpose of it, to not return an int? do answer :)
@UKWazzak C++ can and will be used to write very large commercial software, as well as small trivial programs. It's not in your place to tell people what they can and can't use a language for.
cool ville det kryptere adgangskoden ved at indtaste den, siger, viser ren stjerner som du skriver adgangskoden, ville en god løsning være at bruge en funktion, som ikke findes i ANCI C ville getch (); fangster en karakter og viser ikke på skærmen , Hvilket kan gøre er at udskrive en anden ting, så enkelt. Salu2s
hello zaxy, i found your video very helpful and i am a begginer at this c++ i have been reading the books and i am about to start the course at my college, but can you help me to take this lesson on password protection and make it work with an application? even testing it out on a simple jpeg file would be helpful. please teach me how.. thank you.
Additionally, This tutorial goes beyond showing how to code for password. Zackey should have stuck to the password turtorial and not added the fluff.
Who cares how to have the computer ask "how are you?" Plus, the way that is coded allows for multiple answers to give you a false positive. Hard coding a single word limits the response.
sense you are hardcoding the password in the executable it be very easy to find the string in memory with a debugger, you should have the password hashed, MD5/SHA and salted.
I found out what was wrong.. Our program is just saying that it's missing some commands.. So just look at the textbox in the bottom and it will tell you what to do.. Mine is working now :D
Sadly, this is extremely unsafe. Just use ollyDbg, display all strings, and you got it (and this applies to all applications, especially small ones). Don't hard code a password and if you have to, then encypt it.
Actually, if the executable is small, you can even open it in notepad and see it. Talk about security, heh.. Either encypt/cipher, pack the exe (But if unpacked you can see the password again), or hide the stuff.
You can open it with anything, because of it's small size. Notepad, Notepad++, Hex Workshop...
But when there are bigger executables, you need a good disassembler or string finder. ollyDbg, HDasm, Unix "strings", everything works.
FanOfGreenDay:
These aren't "commands" (It's not a batch file), but instructions. The C++ source code gets interpreted, then "converted" to ASM (It's complex). The interpreter sometimes interprets stuff wrong, that's why sometimes simple programs get real big (500kB).
There are special flags for making it smaller (Check your Compiler Options for these), and a linker flag called "-s". These make the executables smaller and/or faster.
But if you're a programming beginner, you don't need to fiddle arround with these.
Its an viruss!!!! To je virus!!!!!!!
boki2001 3 weeks ago
it sais the sleep and the blockinput functions are undeclared is there a way to fix that or something i might've forgotten?
boad123 2 months ago
can I make it open with some folder
SuperKaunitz 3 months ago
Its saying
cout << "\nHow have you been?n\"; is wrong
and ive a missing terminating " character
First time using this software or ever using C++
if anyone could help i'd be really thankful (:
AoifelCullen 6 months ago
@AoifelCullen It should be "\nHow have you been?\n";
pacrat90 4 weeks ago in playlist More videos from zaxey
hey i'm just learning does the sleep function freeze the user for 'x' milliseconds? also the int main void, what's the purpose of it, to not return an int? do answer :)
Migue261 6 months ago
@Migue261 late reply if you already know thats cool but sleep means countdown.
NorthWolfs 1 month ago
Chill out on the system() commands man, way too resource heavy, especially for a small program like this.
turtleguy910456686 6 months ago
can u make sms bomber tut please
affan546 8 months ago
dude, you have error ;)
perlmaker 8 months ago
what's the name of the music (the first one)?
JonaasK 1 year ago
@JonaasK It's a song from windows XP. It is played after installing it.
If you have XP you can find it at "C:\WINDOWS\system32\oobe\images\title.wma".
ps: I have no idea why it is in a folder named "images" oO.
LNSTeam 1 year ago
main()void
ilovetzie22 1 year ago
crappy Windows Xp installation music
verymadMad 1 year ago
how do i apply this to a word document, or a program.
S4M218 1 year ago
C++ is very powerful and you making program like this? Whats wrong with you?
UKWazzak 1 year ago
@UKWazzak C++ can and will be used to write very large commercial software, as well as small trivial programs. It's not in your place to tell people what they can and can't use a language for.
RedDwarffs 7 months ago
Comment removed
chilebernardo 1 year ago
Comment removed
chilebernardo 1 year ago
cool ville det kryptere adgangskoden ved at indtaste den, siger, viser ren stjerner som du skriver adgangskoden, ville en god løsning være at bruge en funktion, som ikke findes i ANCI C ville getch (); fangster en karakter og viser ikke på skærmen , Hvilket kan gøre er at udskrive en anden ting, så enkelt. Salu2s
chilebernardo 1 year ago
why you put "void" in the main() parameter?
Thunderhead2772 1 year ago
hello zaxy, i found your video very helpful and i am a begginer at this c++ i have been reading the books and i am about to start the course at my college, but can you help me to take this lesson on password protection and make it work with an application? even testing it out on a simple jpeg file would be helpful. please teach me how.. thank you.
jeremiahj138 1 year ago
hope that i will use it on the future..now im teaching simple codes...logic formulation
iamdwyanecardiff 1 year ago
i'm getting expected error pls help meeeeee
zolihunter 1 year ago
1:53 =??
TheGafar2009 1 year ago
Using Sleep and inputting the password directly into the file is probably not the safest bet.
Such programs can easily be reverse-compiled to extract the entire source.
Decent for beginners though, I'll give you that.
akny007 1 year ago
@akny007 - Good advise.!
Additionally, This tutorial goes beyond showing how to code for password. Zackey should have stuck to the password turtorial and not added the fluff.
Who cares how to have the computer ask "how are you?" Plus, the way that is coded allows for multiple answers to give you a false positive. Hard coding a single word limits the response.
Coreybear1
coreybear1 1 year ago
@coreybear1 Perfectly said. Having an actual value for the password removes any chances of "false positives" as you stated.
I'd rather have some program look for (using if's, arrays, and while's) a specific specified password, as opposed to random guessing.
akny007 1 year ago
my antivir shows that my program is a virus^^
matpuz81 1 year ago
@matpuz81 PM me your code, I'll see what's going on
akny007 1 year ago
sense you are hardcoding the password in the executable it be very easy to find the string in memory with a debugger, you should have the password hashed, MD5/SHA and salted.
icon0x1 1 year ago
@icon0x1 agreed - even hex'ing out the password wouldn't be a difficult task
akny007 1 year ago
I found this video (program) very intresting .. bravO zaxey :)
SpellSingerBoy 1 year ago
for windows 7 users it will find 41 errors you just need to delete the lines that it tells are errors and your program will run. :)
TheOldElement 2 years ago
Why throw away C++s cross-platform capabilities by including windows.h and winable.h?
You should really avoid doing that.
rhillner 2 years ago
@rhillner the only alternative is to make it os independant, which is a lot trickier
supergenius1994 2 years ago
Not really. Something like this is just as easier with the standard headers. It's only checking that the user entered a certain string.
rhillner 2 years ago
do you know where to get an os independant library?, I have searched half the internet looking for one, and haven't found anything
supergenius1994 2 years ago
Comment removed
tails77 2 years ago
Blockinput(true);
it told me : `Blockinput' undeclared (first use this function)
what do i supossed to do??
malparido14 2 years ago
its BlockInput(true) actually
xleo21 2 years ago
you have to have caps on Block and Input, anything in the windows.h is anoying like that
JonAndCallum 2 years ago
i get sleep(2000); uncleard or w/e help?
loveMMORPG 2 years ago
you have to write it with a capital S
flexer94 2 years ago
I like the tutorial :D
pedrolha 2 years ago
Thanks you for the tutorial was very helpful and also the music is very cool, i like it.
Hielorapido 2 years ago
You want to get Eclipse I'm no fan of Java but the C++ is fantastic!
ryancfcsas 2 years ago
if (password ** "tavares")
Can ne1 tell meh wats rong
michaelct94 2 years ago
Comment removed
michaelct94 2 years ago
confusing!
alyssariot1 2 years ago
errors keep poping up
cabal22info22 2 years ago
cout << "\nHow have you been?\n";
What is wrong?
rincux2 2 years ago
Bad idea... One could simply open the compiled EXE into a text editor and find the password string as ASCII
bl0ckeduser 2 years ago
u realize how stupid u sound right now, this is a fucking test, he isnt working ith nasa, hes teaching.
silverstatus 2 years ago
I know... but people who watch tutorials don't necesssarily know that.. this could be used in a less 'secure' context
bl0ckeduser 2 years ago
but why would anyone even try to do so? It would be even harder to integrate this program into another, even so, physical access is required.
silverstatus 2 years ago
Makes sense.. In the end the author of this tutorial should merely note that this is not a 'hacker-safe' method
bl0ckeduser 2 years ago
It tells me the getline (cin, answer) is undeclared
comptonhammer 2 years ago
Is Dec-C++ the same as regular VC++?
woofwoof17 2 years ago
Yes Dev C++ is the same except its free , i know this cause i have both
Extermenater94 2 years ago
You can also get Visual C++ Express for free of course.. And w/ about CodeBlocks ??
bl0ckeduser 2 years ago
Yes , that's true , but i was talking about Visual Basic 6 and thats not free that cost.
Extermenater94 2 years ago
Cool videos, you make creative use of what you have.
MrSevenLung 2 years ago
NOW I CAN SEE BUT I DON´T UNDERSTAND!
wowkillenlvl70 2 years ago
i write code and i go to
Execute and compile and run and some windows just show and disapper and nothing happen
junction115 2 years ago
Can't see
wowkillenlvl70 2 years ago
Everytime i press enter it just closes, any reason?
EnragedDomination 2 years ago
it maybe your compiler problem.
if your using dev c++, you have to add:
cin.clear();
cin.ignore(255, '\n');
cin.get();
before returning...
akmalariff 2 years ago
what is the little "" sort of things after password
mike5424 2 years ago
Show us the definition of BlockImput().
You made that, to froze the mouse?
Churck 2 years ago
many ppl face this same error, even me too...
when u type :
cout << "\nHow Have you been?\n"
wrong right?
here's the solution :
Sleep(2000); cout << "\nHow Have you been?\n" <<endl;
in the video above only type Sleep(2000) without " ; "
i've personally tried out. it works after editting
HauntedCarousel 2 years ago
idiot html is disabled.
nickrohn93 2 years ago
could you send the source file to me? By the way, where did you learn C++? I am currently trying to learn
waynekung 2 years ago
THX MAN !!!
You helped me verry mutch!
Saturon92 3 years ago
i am trying to learn c++ and c. how did u learn the language. what websites did u visit. what books did u read. etc
THANX IN ANTICIPATION
ghabhg 3 years ago
i keep getting an error on "string answer" part
TravisEz1 3 years ago
whats the song´s name
soulreaverdoug 3 years ago
nice tutorial :)
ActionHorror 3 years ago
lol i wrote "feeling sick" and i got
Glad to hear that!
-----
But thanks for the tut :D
SwesAchumes 3 years ago
lol you could try setting lots of things (like 100)
mike5424 2 years ago
hey string answer; is wrong...
What he need that?
zjiyartjee 3 years ago
how to create a password usibg c++
fudmonster21 3 years ago
if(password == "thecode") (
What Have I done Wrong
MyMiniWar 3 years ago
if(password == "thecode)
{
//Your Code
}
That's right. Use these "curved" brackets ({}) instead of parantheses (()).
123asas123 3 years ago
no just do this:
not: if(password=="thecode)
good: if(password == "thecode")
see?
rogerXIII 3 years ago
Yeah, sorry. Forgot the terminating quotation mark.
123asas123 3 years ago
its suposed to be
if(password == "thecode")
{
orirnda 2 years ago
^^
...
Ironidiotkiller 3 years ago
Hey I've done everything you did.. But when I'm trying to compiling it's getting an error in the this line:
cout << "\nHow are you?\n";
What have I done wrong?..
FanOfGreenDay 3 years ago
my password part will not work i dont know why i put every thing u did help?
logan8245 3 years ago
same ehre im getting that same exact error i think he using a different verion of devc but im not sure im using 4.9.9.2
zeronerz 3 years ago
I found out what was wrong.. Our program is just saying that it's missing some commands.. So just look at the textbox in the bottom and it will tell you what to do.. Mine is working now :D
FanOfGreenDay 3 years ago
hey man sorry to bother but i have done exactly as i think you said and its not working any way you can help me?
thanks!!
NOHAYCHANCES 3 years ago
Sadly, this is extremely unsafe. Just use ollyDbg, display all strings, and you got it (and this applies to all applications, especially small ones). Don't hard code a password and if you have to, then encypt it.
123asas123 3 years ago
Actually, if the executable is small, you can even open it in notepad and see it. Talk about security, heh.. Either encypt/cipher, pack the exe (But if unpacked you can see the password again), or hide the stuff.
123asas123 3 years ago
Bull shit you can open a exe and look at all its goodys.
xtreme01hac10docter 3 years ago
You can open it with anything, because of it's small size. Notepad, Notepad++, Hex Workshop...
But when there are bigger executables, you need a good disassembler or string finder. ollyDbg, HDasm, Unix "strings", everything works.
FanOfGreenDay:
These aren't "commands" (It's not a batch file), but instructions. The C++ source code gets interpreted, then "converted" to ASM (It's complex). The interpreter sometimes interprets stuff wrong, that's why sometimes simple programs get real big (500kB).
123asas123 3 years ago
There are special flags for making it smaller (Check your Compiler Options for these), and a linker flag called "-s". These make the executables smaller and/or faster.
But if you're a programming beginner, you don't need to fiddle arround with these.
123asas123 3 years ago
This program is merely for learning. :)
zaxey 3 years ago 3
@zaxey your teaching inappropriate ways
outlaw2411 1 year ago
Hmm...How would I do this in Visual Studio? :\
In Dev it's called Source file..what is it called in V.Studio?
VladiKun 3 years ago
i i use v5 and it doesnt work i get alot of errors help please
Ponjoe15 3 years ago
Thanks for this, I'm trying to learn how to program in c++ using Dev C++ but a lot of things teach you how to but by using Microsoft Visual C++...
Your videos are awesome, Keep up the good work!
FrosDOwnz 3 years ago
hey what means void ? :D (sorry for bad english - im german)
Ironidiotkiller 3 years ago
no your english is fine
zeronerz 3 years ago
zaxy can u help i wanna know how to make a .dll plz help
leeandrewauguste 3 years ago
I will make a video soon for you! :)! God Bless!
zaxey 3 years ago
I cant start or save it i have mad esomething rong but thx for this anyway Great work!
haganafa 3 years ago
No problem send me your source code and I will tell you what is wrong with it. :)
zaxey 3 years ago