Changeset 1306

Show
Ignore:
Timestamp:
21-12-10 14:35:45 (3 years ago)
Author:
work@…
Message:

- crypto shared secret is now randomly generated on application startup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r1301 r1306  
    11import dbnp.rest.common.CommunicationManager 
     2import org.apache.commons.lang.RandomStringUtils 
    23 
    34/** 
     
    159160        //       'org.codehaus.groovy.grails.plugins' 
    160161        // 
    161         debug 'org.codehaus.groovy.grails.plugins' 
     162        //debug 'org.codehaus.groovy.grails.plugins' 
    162163} 
    163164 
     
    181182// @see TemplateEditorController.groovy (decrypt) 
    182183crypto { 
    183         shared.secret = "U73reG*mE^\$t@7s!e%" 
     184        shared.secret = RandomStringUtils.random(32, true, true) 
    184185} 
    185186