
Si el largo del texto es mayor al valor ASCII maximo (255) y los carácteres son los mimos en una cadena seguida de 255+1 carácter da debug...
Por ejemplo:
256 Caráracteres "a"
aaaaaaaaaaaaaaaaaa......
aaaaaaaaaaaaaaaaaaa....
Aqui el codigo:
Código
Public Function DEncriptStr(ByVal str As String) As String Dim int As Long = str.Length DEncriptStr = Nothing For Each x As String In str DEncriptStr = DEncriptStr & Chr(Asc(x) Xor int) Next Return DEncriptStr End Function
