Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked ROT N by Slek


Expermicid

Recommended Posts

Les dejo esta funcion de Slek. :)

 

[lenguaje=vb]'Simple ROT N (Encriptación Modular)

'Autor: Slek

'Para Indetectables.net

'18/07/10

'Ejemplo de uso: Text2.Text = EncROTN(Text1.Text, 47)

 

Function EncROTN(sStr As String, Num As Long) As String

Dim bA() As Byte

 

bA = StrConv(sStr, vbFromUnicode)

 

For i = 0 To UBound(bA)

bA(i) = (bA(i) + Num) Mod 256

Next i

 

EncROTN = StrConv(bA(), vbUnicode)

End Function

 

Function DecROTN(sStr As String, Num As Long) As String

Dim bA() As Byte

 

bA = StrConv(sStr, vbFromUnicode)

 

For i = 0 To UBound(bA)

bA(i) = (bA(i) + (256 - Num)) Mod 256

Next i

 

DecROTN = StrConv(bA(), vbUnicode)

End Function[/lenguaje]

 

Saludos

Edited by Expermicid
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.