Search

You searched for the word(s): userid:815492

Matching Posts

  • Re: PHP to VB.NET convertion problem

    Yes, totally understand that it returns zero, but why does it work in PHP. The php code works fine when given the zero, i just don't understand why mine is different. Anyone who can explain this to me will be of much help.
  • PHP to VB.NET convertion problem

    Here is my php to vb.net PHP code: function encrypt($string, $key) { $result = ''; for($i=0; $i<strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } return base64_encode($result); } VB.NET code: Function crypter(ByVal strPass As String, ByVal key As String) Dim result As String = Nothing Dim i As Integer For i = 0 To strPass.Length - 1 Dim charPass As Char charPass = strPass
Page 1 of 1 (2 items)