Create an application that uses a socket connection to allow a client to specify a file name of a text file and have the server send the contents of the file or indicate the file does not exist. The server must contain a text based password file ("user name" & "password"). The client must pass a valid username and password to establish a connection with the Server (see Note 1). Notes: 1. A much better approach would be to encrypt the password file. The Java Cryptographic Extension (available since JDK 1.4) provides an API. Java Cryptography Architecture Reference Guide (JCA Guide): on oracle Introduction, Code Examples - Computing a Message Digest Object (i.e. one-way hash; using SHA-1) -Please ensure that it works need clear help compiling properly with no errors.
Create an application that uses a socket connection to allow a client to specify a file name of a text file and have the server send the contents of the file or indicate the file does not exist. The server must contain a text based password file ("user name" & "password"). The client must pass a valid username and password to establish a connection with the Server (see Note 1).
Notes: 1. A much better approach would be to encrypt the password file. The Java Cryptographic Extension (available since JDK 1.4) provides an API.
Java Cryptography Architecture Reference Guide (JCA Guide): on oracle
Introduction, Code Examples - Computing a Message Digest Object (i.e. one-way hash; using SHA-1)
-Please ensure that it works need clear help compiling properly with no errors.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images