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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



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