Click here to Skip to main content
15,899,935 members

Comments by Nicky Ralph (Top 11 by date)

Nicky Ralph 13-Mar-21 15:48pm View    
I've tried the link above, however i cant decrypt data without getting from encrypted string.
Nicky Ralph 13-Mar-21 3:55am View    
Thank you for this Richars, this is really helpful. Maybe you can help me as welll with https://www.codeproject.com/Questions/5296767/HOW-to-DECRYPT-HEX-USING-3DES-in-VB-NET
Nicky Ralph 11-Mar-21 7:45am View    
I did this:
Dim HexArray as Byte() = New byte() { }
how can i get the value of textbox1.text using this

HexStringToBytes(input)
Nicky Ralph 11-Mar-21 7:16am View    
This is what I did

Imports System.IO
Imports System.Text
Imports System.Security.Cryptography

Public Class Form1
    Shared Function HexStringToBytes1(ByVal hexString As String) As Byte()
        Dim result As New List(Of Byte)()
        For i As Integer = 0 To hexString.Length - 1 Step 3
            result.Add(Convert.ToByte(hexString.Substring(i, 2), 16))
        Next
        Return result.ToArray()
    End Function

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        RichTextBox1.Text = HexStringToBytes(TextBox1.Text)
    End Sub
End Class
Nicky Ralph 11-Mar-21 7:14am View    
Thank you, I'll try it again, I'll update you.