Re: problema con encrypt

Cristian Costantini <[email protected]>
Newsgroups gmane.comp.cms.cold-fusion.devel.italian
Message-ID <[email protected]>
Ciao Matteo,

dal tuo esempio vedo che fai encrypt due volte, il motivo?

Cristian


Il giorno 11/mag/2012, alle ore 12.48, Matteo Vidovich ha scritto:

> "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
> 
> 
> 
> ------------------------------------
> 
> CFMentor
> http://www.cfmentor.comLink utili di Yahoo! Gruppi  
> 
> 
> 




------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.