> Original= 12345678910111213141516171819202122
> Generated By .Net = iR2kmtngiYH/aVQdkkid5O4/mn0=
> Generated by UDf's = w4ZFwrgMw7gBw7UeAnIlR2YICcKaw5dQTQ==
Just to add to the mix, using a set of hashing components within Delphi, my
SHA1 hash produces a match for the UDF generated version. The .
Value;
}
How do I convert this code to cfscript?
Aldon
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 11:46 AM
To: CF-Talk
Subject: Re: String to SHA1 to Base 64 Encryption Help!
Aldon wrote:
> Original=123456789101112131415161718
Aldon wrote:
> Original=12345678910111213141516171819202122
> Converted=iR2kmtngiYH/aVQdkkid5O4/mn0=
I presume that is the converted output as generated by .NET? In
that case, download http://www.cflib.org/udf.cfm?ID=1016 and try:
Given message=#message#
The Base64 encoded SHA-1 message digest
Original=12345678910111213141516171819202122
Converted=iR2kmtngiYH/aVQdkkid5O4/mn0=
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 5:04 AM
To: CF-Talk
Subject: Re: String to SHA1 to Base 64 Encryption Help!
Aldon wrote:
>
> I
Aldon wrote:
>
> Imports System.Security.Cryptography
> Private Function ComputeHash(ByVal Key As String) As String
> Dim objSHA1 As New SHA1CryptoServiceProvider
> objSHA1.ComputeHash(System.Text.Encoding.UTF8.GetBytes(Key.ToCharArray))
> Dim buffer() As Byte = objSHA1.Hash
> Dim HashValue As Str
)#
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 22, 2005 3:27 AM
To: CF-Talk
Subject: Re: String to SHA1 to Base 64 Encryption Help!
Aldon Moore wrote:
> I am completing the integration of a payment processora and the processor
requires me to conver
Aldon Moore wrote:
> I am completing the integration of a payment processora and the processor
> requires me to convert a string to SHA1 then to BASE64. I used a SHA1 UDF
> script from Cflib.org for the conversion but in comparison to the string
> created by the dotnet SHA1CryptoServiceProvider
I am completing the integration of a payment processora and the processor
requires me to convert a string to SHA1 then to BASE64. I used a SHA1 UDF
script from Cflib.org for the conversion but in comparison to the string
created by the dotnet SHA1CryptoServiceProvider its different.
I am testi
8 matches
Mail list logo