Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

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.


advertisement
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



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap