Re: problema con encrypt
Matteo Vidovich <[email protected]>
| Newsgroups | gmane.comp.cms.cold-fusion.devel.italian |
|---|---|
| Message-ID | <[email protected]> |
"Matteo <[email protected]>" oggi alle ore 11.09 hai scritto: > Ciao a tutti, > un nostro cliente criÚta delle stringhe con algoritmo Triple DES in > PHP e in Java utilizzando sempre lo stesso risultato. Intendevo "ottenendo sempre lo stesso risultato". Io sono partito da questi script <cfset theKey = "12345678901234567890123456789012" /> <cfset theAlgorithm = "DESede"> <cfset theEncoding_h = "hex"> <cfset theEncoding_b = "base64"> <cfset decrypt_key = 'myString'> <cfset encrypt_key_h = encrypt(#decrypt_key#, #theKey#, #theAlgorithm#, #theEncoding_h#)> <cfset encrypt_key_b = encrypt(#decrypt_key#, #theKey#, #theAlgorithm#, #theEncoding_b#)> <cfoutput>#decrypt_key#<br>#encrypt_key_h#<br>#encrypt_key_b#</cfoutput> e c'ho smanettato un bel po' ma senza mai riuscire ad ottenere il suo risultato :( -- Matteo ------------------------------------