-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the crypto wiki!
-
Install MongoDB available at https://www.mongodb.com/download-center
-
Run MongoDB according to the instructions for your OS available at https://docs.mongodb.com/manual/installation/
-
Using MongoDB shell, insert a user in order to access the deployed web application with the following command:
-
db.login.insert({"username":"yyy", "password":"12345678"})
where 'yyy' is any username you choose and '12345678' can be any password, as long as it is EXACTLY 8 characters long.
-
Install Tomcat v7.0 server
-
Deploy 'Crypto/WEB_APP/Crypto.war'
-
Access the deployed application 'home.xhtml'
-
Login with the user inserted in MongoDB (user 'yyy', password '12345678' in the previous example)
-
After a successful login, try the Encrypt, Decrypt and Log pages
- Unable to create a key manually in order to compare the DES Java encrypter to online tools.
- Plain DES encryption has been used in order to be able to generate always the same key. Thus, Unit Tests can be run successfully on the DES encrypter class.
- Adding the JavaServer Faces facet to the project. Many plugins had to be installed.
- Some JAR packages did not carry over to the Web Application automatically. They had to be copied manually from each of their local folders to WebContent/WEB-INF/lib.
- DES encryption can be switched to more powerful algorithms.
- MongoDBClient closes the database connection on its finalize() method.
- MongoDB use can be optimized by using Spring Data for MongoDB. Reference: http://spring.io/guides/gs/accessing-data-mongodb/
- The application web pages can be made dynamic by using Facelets.

