Uploaded image for project: 'Lucee Development'
  1. LDEV-1170

RAILO-858 Add the Coldfusion built-in function generate3DesKey

    Details

    • Type: Incompatibility
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2.37
    • Labels:
    • Sprint:
      May-June 2017 Sprint

      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

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              frinky Paul Klinkenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h