I am working on encryption and decryption of file/string and I'm using 'AES-128'.
I would like to ask some questions.!
I want to send encrypted file/string from client to a server and I want that encrypted file to be decrypted at server side after receiving .!
Steps I want:
1) Connection between server and client.(Already Done).
2) Adding encryption in client code, means after running the Client.java code the connection get established to server then the code would ask for a file or a string to be sent to the server. After taking the file/string from user it encrypts it and sends it the server(The client code need to include Encryption.java code with file handling).
3) The sending of the file/string need to be continuous, I mean it continuously runs and takes a single data from a text file(using readonly/writeonly).
for example, I have a file and there are texts in it. '233, 244, 455, 445, 555, 555," all in numeric form and in next lines.
so 1st run would take 233 , then encrypt it and then sends it to server. Then it would take 244 and does the same.
4) After 3rd step , at server side, after receiving the encrypted files it would decrypt it, line by line on the same txt file.
I hope you would understand my problem.
Could anyone tell me about this ??
I would look for your reply, asap. Thank you.
I have done some parts by taking help of internet, as I am not an expert, but I am not able to achieve my goal.
subject: Encryption/Decryption of file/string using AES-128 on Server and Client model