pues mira te platico un poco que es lo q debo hacer
tengo un sistema en VB 6 que me encripta unos nombres de archivos pdf
tiene esta funcion
Cita:
pero la verdad yo caasi no he trabajado en vb este ncodigo no lo hice yo pero debo "traducir" a php y obvio tengo q descriptar esto para poder verlos en phpFunction PasaANumerosH(Texto As String) As String
Dim i As Long, aux As String, s As String
aux = ""
For i = 1 To Len(Texto)
s = Hex(Asc(Mid(Texto, i, 1)))
If Len(s) = 1 Then s = "0" & s
aux = aux + s
Next i
PasaANumerosH = aux
End Function
Dim i As Long, aux As String, s As String
aux = ""
For i = 1 To Len(Texto)
s = Hex(Asc(Mid(Texto, i, 1)))
If Len(s) = 1 Then s = "0" & s
aux = aux + s
Next i
PasaANumerosH = aux
End Function
esta otra funcion es la q "desencripta"
Cita:
en fin el me hoyo del asunto jeje esque la verdad no entiendo el codigo Function PasaATextoH(numeros As String) As String
Dim i As Long, aux As String
aux = ""
For i = 1 To Len(numeros) Step 2
aux = aux + Chr("&H" & Mid(numeros, i, 2))
Next i
PasaATextoH = aux
End Function
Dim i As Long, aux As String
aux = ""
For i = 1 To Len(numeros) Step 2
aux = aux + Chr("&H" & Mid(numeros, i, 2))
Next i
PasaATextoH = aux
End Function
y si tienes alguna sugerencia de como poder descriptarlo en php ya ya se q es foro de VB jeje me ayudas a entenderle??
gracias!!