Commits

Anonymous committed 87279ba

first rough draft done, a couple of todos left

Comments (0)

Files changed (3)

demo-jasypt/consoleDemo.groovy

 
 def p = Person.findByLastName("Naleid") ?: Person.build(lastName: "Naleid", ssn: "123456789")
  
-p.ssn = "123456789"
-p.save(failOnError: true)
+p.ssn = "123456781"
+p.save(failOnError: true, flush: true)
 
 eachRow("select * from person")

demo-jasypt/grails-app/conf/Config.groovy

-/*
-grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
-grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
-grails.mime.use.accept.header = false
-grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
-                      xml: ['text/xml', 'application/xml'],
-                      text: 'text/plain',
-                      js: 'text/javascript',
-                      rss: 'application/rss+xml',
-                      atom: 'application/atom+xml',
-                      css: 'text/css',
-                      csv: 'text/csv',
-                      json: ['application/json','text/json'],
-                      form: 'application/x-www-form-urlencoded',
-                      multipartForm: 'multipart/form-data'
-                    ]
-// The default codec used to encode data with ${}
-grails.views.default.codec = "none" // none, html, base64
-grails.views.gsp.encoding = "UTF-8"
-grails.converters.encoding = "UTF-8"
-// enable Sitemesh preprocessing of GSP pages
-grails.views.gsp.sitemesh.preprocess = true
-// scaffolding templates configuration
-grails.scaffolding.templates.domainSuffix = 'Instance'
-
-// Set to false to use the new Grails 1.2 JSONBuilder in the render method
-grails.json.legacy.builder = false
-// enabled native2ascii conversion of i18n properties files
-grails.enable.native2ascii = true
-// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
-grails.logging.jul.usebridge = true
-// packages to include in Spring bean scanning
-grails.spring.bean.packages = []
-
-// set per-environment serverURL stem for creating absolute links
-environments {
-    production {
-        grails.serverURL = "http://www.changeme.com"
-    }
-    development {
-        grails.serverURL = "http://localhost:8080/${appName}"
-    }
-    test {
-        grails.serverURL = "http://localhost:8080/${appName}"
-    }
-
-}
-*/
-
-// don't check this into source, use grails.config.locations to set an external file to load
+// don't check this into source (in non-demo projects)
+//use grails.config.locations to set an external file to load
 jasypt {
-    algorithm = "PBEWITHSHA256AND128BITAES-CBC-BC"
+    algorithm = "PBEWITHSHA256AND256BITAES-CBC-BC"
     providerName = "BC"
     password = "my super secret passphrase"
     keyObtentionIterations = 1000
 }
 
 log4j = {
-    debug  'org.codehaus.groovy.grails.web.servlet',  //  controllers
+    info  'org.codehaus.groovy.grails.web.servlet',  //  controllers
            'org.codehaus.groovy.grails.web.pages', //  GSP
            'org.codehaus.groovy.grails.web.sitemesh', //  layouts
            'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
            'org.springframework',
            'org.hibernate',
            'net.sf.ehcache.hibernate'
-
+    debug  'com.bloomhealthco.jasypt.*'
     warn   'org.mortbay.log'
 }

jasypt_presentation.key

Binary file modified.