![]() |
|
[.NET] VB 2010 Encyrpter XTEA - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] VB 2010 Encyrpter XTEA (/showthread.php?tid=4633644) Pages: Pages
1
2
|
VB 2010 Encyrpter XTEA - trefl - Jan 12, 2015 hello. I have a problem. I'm trying to do Encrypter XTEA. Borrowed code from the user d3c0mpil3r. I can not understand it. code: Code Private Shared Sub code(ByVal v As UInteger(), ByVal k As UInteger())I can not call the function. The value of v is the text that is to be encrypted? The value of k is the key? How do these data call? * - Aristocles - Jan 12, 2015 Since the function doesn't Return anything, you will have to do something like this : Dim Myvalue as Uinteger Myvalue = code(123,456) Also please do refer to former replies : https://hackforums.net/showthread.php?tid=815420&pid=8555658#pid8555658 https://hackforums.net/showthread.php?tid=815420&pid=8566970#pid8566970 * - Only3 - Jan 12, 2015 its not the main function Public Function Encrypt(ByVal input As String) As String ... Public Function Decrypt(ByVal Data As String) As String ... * - trefl - Jan 13, 2015 thanks. And can someone explain to me how to make it work? How substitute data, how to call a function, where the sets own key, where he sets the text to encrypt? I am a beginner. I became interested in data encryption. I would like to know the code of the user d3c0mpil3r. Full code: Code Public Class XTea* - Only3 - Jan 13, 2015 Dim X As New XTea("Pass") Dim Enc = X.Encrypt("String") MsgBox(X.Dcrypt(Enc)) * - trefl - Jan 13, 2015 WOW, thanks. I just have a problem. What do I do? Quote:'Public Sub New(password As String)' in designer-generated type 'XTEA_Encryption.Form1' should call InitializeComponent method. Quote:'Form1' is a type in 'XTEA_Encryption' and cannot be used as an expression. * - Only3 - Jan 13, 2015 https://hackforums.net/showthread.php?tid=815420 Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim X As New XTea("Pass") Dim Enc = X.Encrypt("String") MsgBox(X.Dcrypt(Enc)) ... Public Class XTea ... End Class End Class * - trefl - Jan 13, 2015 awesome, aww :3 why I have Overflow error ? * - Only3 - Jan 13, 2015 cant guess read the replys in his thread * - trefl - Jan 13, 2015 I read and I cant find. The question no answer. I know that the key has a length of 6 - 16 characters. my code: Code Private Sub xtea_button_Click(sender As System.Object, e As System.EventArgs) Handles xtea_button.ClickOverflow is: Code y += (z << 4 Xor z >> 5) + z Xor sum + k(sum And 3)Code sum += deltaI cant fix it...😧 * - ScΛrƒΛc3_ - Jan 13, 2015 project properties...advanced compiling options...check on remove integer overflow control. * - trefl - Jan 14, 2015 thanks thanks thanks :D you are pro :D * - Only3 - Jan 14, 2015 if u just read the replys https://hackforums.net/showthread.php?tid=815420&pid=8566970#pid8566970 * - trefl - Jan 14, 2015 oh, I noticed just now ... sorry for the problem. I thought this signature . a big thank you gentlemen for a very good help. I bet you a beer :D . I have one question . the entire script returns the encrypted text in strange characters. is the ability to do that drew in numbers ? :D eg introduce the key, as the text I have " 1234567890 " . text goes through the script and returns the encrypted me in numbers . is it possible? * - Only3 - Jan 14, 2015 thats all the idea of encrypt text > strange characters |