لبرنامج Vegnar Cipher
هذا خوارزمية مصغره
هذا خوارزمية مصغره
PHP كود :
Code:
For i = 1 To Len(strText)
strEncryptedText = strEncryptedText & Chr(Asc(Mid(strText, i, 1)) + intKey)
Next
Code:
For i = 1 To Len(strText)
If Chr(strEncryptedText) <= 256 Then
strEncryptedText = strEncryptedText & Chr(Asc(Mid(strText, i, 1)) + intKey)
Else
strEncryptedText = strEncryptedText & Chr((Asc(Mid(strText, i, 1)) + intKey) - 256)
End If
Next
