portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

generatesecrate key

| View in Portal
April 25, 2019 09:33:20 AM GMT
0 Comments
<p>This is my code for which i have written to encript..bt instead of AES i need to give my value..i mean i should generate secrate key in the form of surveyId_InviteId ….help me with this this is my code: <cfset InviteArray=[1,2,3,4,5,6,7,8,9,10]> <cfset surveyID=1> <cfset encryptArray=arrayNew(1)/> <cfloop from=”1″ to=”#arraylen(InviteArray)#” index=”j”> <cfset encryptionKey = generateSecretKey( “surveyID_InviteID” ) /> <cfset inviteandandSurvey=surveyID&InviteArray[j]> <cfset EncryptedSurveyID = encrypt(inviteandandSurvey,encryptionKey,”surveyID_InviteID”,”hex”) /> <cfset decoded = decrypt(EncryptedSurveyID,encryptionKey,”surveyID_InviteID”,”hex”) /> <cfset encryptArray[j]=”#EncryptedSurveyID#”> <cfdump var=”#encryptArray[j]#”></br> </cfloop></p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/04/generatesecrate-key/">generatesecrate key</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: cffunction, CFML Tag/Function, Question, cfml tag/function, ColdFusion, question

Comments: