How can I get the password of a windows user in java?

1

I have already tried with the class System but with this class I can only get the user in the following way:

System.out.println(System.getProperty("user.name"));

Now what I need is to get the password , I tried to find a command for cmd but apparently it does not exist. Can you help me please?

    
asked by rogeliofca 12.04.2018 в 18:19
source

1 answer

1

You can not, the operating system does not store the password, probably use some kind of certificate, encryption, fingerprint ...

This is what allows you to get System.getProperty(string)

Key                 Meaning
"file.separator"    Character that separates components of a file path. This is "/" on UNIX and "\" on Windows.
"java.class.path"   Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in the path.separator property.
"java.home"         Installation directory for Java Runtime Environment (JRE)
"java.vendor"       JRE vendor name
"java.vendor.url"   JRE vendor URL
"java.version"      JRE version number
"line.separator"    Sequence used by operating system to separate lines in text files
"os.arch"           Operating system architecture
"os.name"           Operating system name
"os.version"        Operating system version
"path.separator"    Path separator character used in java.class.path
"user.dir"          User working directory
"user.home"         User home directory
"user.name"         User account name

Documentation

    
answered by 12.04.2018 / 18:35
source