Fixed
Details
Details
Assignee
Igal Sapir
Igal SapirReporter
Paul Klinkenberg
Paul KlinkenbergLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Time tracking
1h logged
Fix versions
Priority
Created 24 January 2017 at 06:31
Updated 14 June 2017 at 20:23
Resolved 11 June 2017 at 20:32
Coldfusion has a built-in function called generate3DesKey("string"), which is not documented by the way.
The functionality which we could add to Lucee is:
function generate3DesKey( string fromString ) { if( !structKeyExists( arguments, 'fromString' ) ){ return generateSecretKey( 'DESEDE' ); } var secretKeySpec = createObject( 'java', 'javax.crypto.spec.SecretKeySpec' ).init( arguments.fromString.getBytes(), 'DESEDE' ); return toBase64( secretKeySpec.getEncoded() ); }
I can also add this as an extension, but it would be more easy if it was in the core.
Copy of RAILO-858