I am working on a symmetric key algorithm based program. I want to generate a key (e.g. AES) with a keyGenerator and store in a file (then put file into a folder). Then retrieve it from a client and a server programs.
This is not a real life scenario. In real life symmetric is exchanged between two parties and there is no third party to hold the key. But for my programming convenience, I want to run this in my host computer where I have set up two programs as client and server for demonstration purposes.
Can somebody give me a link or reference or can write a short reference program for this?