Changes to the Views
Adding authentication and encryption to the RailsWiki application
requires some changes in the client and server-side code. For the client side, you need to add a logon screen as shown in Figure 2
Notice that the logon screen contains not only a user name and password but also an encryption key. (You will see how to use this key to encrypt data later.) In addition to the new logon screen, you also need to modify the old "Home" screen by adding a checkbox for the user to choose whether a new file should be encrypted or not. Figure 3 reflects this change.