Wednesday, February 27, 2013

Progress on my Program (2/27)

If you are new to my blog, during this semester I plan to create a program using the java programming language which will allow a user to store their passwords for easy access. In order for the program to function as I intend for it to, it needs to be able to interact with the user, store and at a later date recall records, and also have those records be encrypted to keep user data safe. Prior to this week I had figured out the code to be able to read records from a text file. I also figured out the code to be able to write a new entry to an existing text file. To see the blog where I show these two functions click here (Will open in a new window)

This week I have managed to get the remaining part of the write function working as I need it to. Last week using the write function I was able to add a new entry to the record that the program could access but I was not able to edit password that had already been entered into the program and saved. This week I managed to finally get that part to work and it sure was difficult. Below are a few screenshots that show this function working.

The first screenshot shows the my test file which contains entries and passwords to show how they would appear when this program is actually used. This is how the entries and passwords appeared before the program demonstrating the portion of write function I figured out this week. Below that is a screenshot of the command prompt showing me running this program. The reason that the password in the file is the exact same as the password as what the program says that it is plus a number is that there needs to be a way to distinguish passwords from each other even if they are the same. While demonstrating the program I change two password to show that using the code I don't have to reboot the program each time I want to change a different password  And the final screenshot shows the program after I have run the program. Notice how the passwords under Entry1 and Entry3 have changed. That is due to the program working correctly.





1 comment:

  1. Programming is a very interesting topic and I can see from your programming progress that you have gotten pretty far into it. Would you say it's something that any person could just Google and find answers on how to program different softwares, or do you think classroom education is needed?

    ReplyDelete