How to Read Passwords by Hiding Entered Characters | C Programming Language Tutorial

  Рет қаралды 40,614

LearningLad

LearningLad

Күн бұрын

Пікірлер: 41
@yokeshwaran7305
@yokeshwaran7305 8 жыл бұрын
i have watched the entire 48 min video...without skipping anything ..i understood well..awesome bro...Eagerly waiting 4 more programs like this
@fernandomagallanes7350
@fernandomagallanes7350 3 жыл бұрын
broooo, u earned my subscription. much love!
@xovert5347
@xovert5347 3 жыл бұрын
this saved my life, thank you so much
@LearningLad
@LearningLad 3 жыл бұрын
pleasure :)
@purshotamkhatri4712
@purshotamkhatri4712 7 жыл бұрын
wonderful explanation .you really deserve respect .waiting for your new videos
@LearningLad
@LearningLad 7 жыл бұрын
Thank you :)
@clintothomas1030
@clintothomas1030 8 жыл бұрын
Its just awesome . I wish u were my teacher.
@johnlarryburo6250
@johnlarryburo6250 4 жыл бұрын
Thank you, for making this video.
@LearningLad
@LearningLad 4 жыл бұрын
my pleasure :)
@madhavgautam6252
@madhavgautam6252 8 жыл бұрын
thanks for your's awesome useful videos .....u described it beautifully in understanding manner..waiting for your more updates.
@LearningLad
@LearningLad 8 жыл бұрын
thank you. will add more videos asap :)
@XxelitebeautyxX
@XxelitebeautyxX 6 жыл бұрын
So, basically we use printf("\b \b"); Thank you!
@PalitoTechnologies
@PalitoTechnologies 7 жыл бұрын
you are the best i love to watch your videos
@LearningLad
@LearningLad 7 жыл бұрын
Thank you :)
@edilmarlulab5964
@edilmarlulab5964 8 жыл бұрын
Thanks your all videos are awesome, and it's help me a lot for applying to my project xDD, more vids up upload please..
@LearningLad
@LearningLad 8 жыл бұрын
i'm really glad that my tutorials are helping you. i will add more video's. Thank You :)
@vineethreddy.s
@vineethreddy.s 7 жыл бұрын
Clean and neat💓...
@LearningLad
@LearningLad 7 жыл бұрын
Thank you :)
@crist2000a
@crist2000a 7 жыл бұрын
I wonder why characterPosition
@jijojose8892
@jijojose8892 7 жыл бұрын
Superb.........................
@harshavardhanupputuri6211
@harshavardhanupputuri6211 7 жыл бұрын
Sir I'm using compiler telnet it doesn't support conio.h then to use getch what preprocess or directive we should include
@punjog4917
@punjog4917 8 жыл бұрын
i want to print the whole array but to print i call a function with an 2 parametes i.e. pointer and an int size but instead of passing base addres in pointer i pass the address of any element in the array how to print the whole aray ??? will you please helpme with this
@raghavchadha9133
@raghavchadha9133 7 жыл бұрын
how an ASCII value u can store in char CH variable ..that data type must b int ?????
@junihbhatt
@junihbhatt 5 жыл бұрын
Thank you ❤️🔥
@LearningLad
@LearningLad 5 жыл бұрын
my pleasure :)
@Xp-Sam
@Xp-Sam 4 жыл бұрын
@@LearningLad sir... In my linux getch() was not working so i googled it and found a written getch() function which i pasted in the above code... Its working fine but the problem is the ascii value it is taking for ENTER = 10 and for backspace = 127 while for TAB and SPACE it is same as yours.... Why is it so? I'm so confused right now..... I have read that ascii values are fixed for every key.
@yangakwaje9685
@yangakwaje9685 8 жыл бұрын
I love all your learning lad
@LearningLad
@LearningLad 8 жыл бұрын
+yanga kwaje Thank you :)
@junxian9521
@junxian9521 5 жыл бұрын
why my char password[maxPasswordLenght+1]; was eror?? need some help
@LearningLad
@LearningLad 5 жыл бұрын
which compiler you are using? some doesn't allow it.
@jungho6048
@jungho6048 5 жыл бұрын
@@LearningLad Visual studio doesn't allow to.
@junxian9521
@junxian9521 5 жыл бұрын
visual studio i use
@junxian9521
@junxian9521 5 жыл бұрын
@@LearningLad now I got some problems is i using binary file to store the file ,when first time invalid password second time key in the valid password and i put enter after it will stuck and cant accept any key . I just modify ur code
@userrrrr-l1r
@userrrrr-l1r 5 жыл бұрын
i did search but i didn't find how i use conio.h in linux please can someone help me
@emirhandemir3872
@emirhandemir3872 2 жыл бұрын
30:23 BACKSPACE //// DELETE CAHRACTER //// ASCII = 8 //////
@Xp-Sam
@Xp-Sam 4 жыл бұрын
Great work sir.... But i have a question... According to you printf("learninglad\b" ) ; Should print learninglad with cursor blinking at 'd' but what i got is "learningla" printed on the screen... Why is this happening? Plz reply.....
@boginenivenugopal3441
@boginenivenugopal3441 8 жыл бұрын
Hii Anil. How r you? Your videos are awesome. I have wrote entire code as you said in the video, there is no errors as well, but when i enter any key for password that command prompt terminating automatically in DEV C++. is there any problem with getch() ? Below is the program which i written ************************************************************** #include #include #include #include #include int main (){ const int max_password_length = 15; char password[max_password_length+1]; char ch; int characterPosition = 0; printf("Please enter password: length 1 - %d ",max_password_length); while(1) { ch = getch(); if (ch = 13){ // When USER hits ENTER key break; }else if(ch == 32 || ch == 9) { // Wher USer hits SPACE or TAB continue; }else if (ch == 8){ /// When user hits BACKSPACE if (characterPosition > 0){ characterPosition--; password[characterPosition]='\0'; printf("\b \b"); } }else{ if (characterPosition < max_password_length){ password[characterPosition]= ch; characterPosition++; printf("*"); }else{ printf(" You have enterd more than %d characters . Hence we will consider first %d character ",max_password_length,max_password_length); break; } } } password[characterPosition]='\0'; printf(" "); if (strlen(password)==0){ printf(" No passwd enterd "); }else { printf(" password is %d ",password); } return 0; } ************************************************************** Please Kindly help me on this.
@LearningLad
@LearningLad 8 жыл бұрын
you are using if (ch = 13){ // When USER hits ENTER key here = is the assignment operator. everything it assigns value 13 to the variable ch. change this to == (comparison operator) use if( ch == 13 ) I haven't checked rest of the code. So if u have any other mistake then Pls check the video again to correct the mistake.
@boginenivenugopal3441
@boginenivenugopal3441 8 жыл бұрын
Oh thnx anil :)
@arneljocosol5406
@arneljocosol5406 3 жыл бұрын
can you send here the code?
@mathobamathoba9126
@mathobamathoba9126 8 жыл бұрын
can u give me this in c++ code
File Access Basics | C Programming Tutorial
24:05
Portfolio Courses
Рет қаралды 105 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 844 М.
C++ Header Files
15:10
The Cherno
Рет қаралды 743 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 573 М.
Is the C programming language still worth learning?
9:27
Jacob Sorber
Рет қаралды 113 М.
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 157 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 911 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 436 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН