How do we keep password for a program in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do we keep password for a program in Java?

please answer my question

23rd Apr 2018, 9:45 AM
SandeepGaming 12
SandeepGaming 12 - avatar
16 Answers
+ 5
very interesting conversation I had so much fun reading it... ROFL๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
31st Aug 2018, 2:27 AM
Tanay
Tanay - avatar
+ 3
Ok, now I got what you want. Zip your program with a password. To unzip it, you need the password. But an unzipped version can be distributed. So it's just safe as long as you trust every person with the password.
30th Aug 2018, 3:54 PM
Timon PaรŸlick
+ 1
It's not exact. Are you asking about how to build a login system?
23rd Apr 2018, 10:08 AM
Timon PaรŸlick
+ 1
No I am a student in India
23rd Apr 2018, 10:08 AM
SandeepGaming 12
SandeepGaming 12 - avatar
+ 1
Ok, you're a student in India. But what exactly do you want to know?
23rd Apr 2018, 10:09 AM
Timon PaรŸlick
+ 1
How do you mean "keeping a password"? Don't you know your passwords by heart?
23rd Apr 2018, 10:29 AM
Timon PaรŸlick
+ 1
Do you mean that you want to protect your program from unauthorized users? You do that with a profile system.
30th Aug 2018, 2:13 PM
Timon PaรŸlick
+ 1
A protected class member is just accessible within the class and its subclasses. The protected keyword has nothing to do with security or passwords.
30th Aug 2018, 2:56 PM
Timon PaรŸlick
+ 1
You can but it's harder than making everything 'protected'. ( ; You need to give people product keys after payment and validate those before sending the program to the client or answering a request to your web service.
30th Aug 2018, 3:49 PM
Timon PaรŸlick
0
๐Ÿ˜‚
23rd Apr 2018, 10:16 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
Sir I wanted to keep a password in a Java program using protected keyword But there was no password. Please help me
23rd Apr 2018, 10:28 AM
SandeepGaming 12
SandeepGaming 12 - avatar
0
I meant about initialising a password to protect my program sir
30th Aug 2018, 1:28 PM
SandeepGaming 12
SandeepGaming 12 - avatar
0
what is the use of keyword 'protected'
30th Aug 2018, 2:51 PM
SandeepGaming 12
SandeepGaming 12 - avatar
0
So sir you are saying that we cannot assign a password to a program Thank you for clearing my doubt sir!!!๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€
30th Aug 2018, 3:45 PM
SandeepGaming 12
SandeepGaming 12 - avatar
0
I am not that old yet!!!
30th Aug 2018, 3:50 PM
SandeepGaming 12
SandeepGaming 12 - avatar
0
But thank you sir!!!
30th Aug 2018, 3:50 PM
SandeepGaming 12
SandeepGaming 12 - avatar