RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX


Build Robust Security into a Rails-Based Wiki System : Page 2

Learn how to add robust security features to a simple wiki system built on the Rails platform.

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.

Click to enlarge

Figure 2. Logon Screen

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.

Click to enlarge

Figure 3. Home Screen

Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date