RAILO-858 Add the Coldfusion built-in function generate3DesKey

Description

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

Activity

Pothys - MitrahSoft 
31 January 2017 at 11:29

Hi ,

I've analyzed this ticket a lot & found that the function generate3DesKey is available in ACF9+. But i'm not sure, we need to add the same function for lucee or not. So please review this.

Pull request: https://github.com/lucee/Lucee/pull/172

Fixed

Details

Assignee

Reporter

Labels

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

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