Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/07/2009, 12:24
jotamarios
 
Fecha de Ingreso: abril-2009
Mensajes: 196
Antigüedad: 16 años
Puntos: 0
Mensaje Respuesta: Variable is undefined

Si es necesaria mas información aquí les va:

el código es este:

Código:
Function CifrarDatos(ByVal cc_number)
    
    Dim EncryptedData, cifrado   
    Set EncryptedData = server.CreateObject("CAPICOM.EncryptedData")    
    
    EncryptedData.SetSecret "laclavemaslarga"
    EncryptedData.Content = cc_number
    
    EncryptedData.Algorithm =CAPICOM_ENCRYPTION_ALGORITHM_AES 
   
    EncryptedData.Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY_LENGTH_256_BITS
    
    cifrado=EncryptedData.Encrypt(CAPICOM_ENCODE_BASE64)
   
    CifrarDatos = cifrado
        
End Function
Y como dato adicional... lo pruebo en una página de prueba con datos incluidos sin "Function" y si me devuelve el texto cifrado y descifrado.