Page 1 of 1

[Request] Visual Basic l2j password encryption

Posted: Sun Jul 29, 2012 3:37 am
by drizzlx
I don't have enough experience with visual basic to figure out the l2j password encryption. So, If anyone could share a function to encrypt the password, or some information, I would really appreciate it.

I'm trying to create a usercp.

Thanks!

Re: [Request] Visual Basic l2j password encryption

Posted: Sun Jul 29, 2012 2:31 pm
by mrTJO
Here's the function :D

Code: Select all

     ' Convert Plain Text Password to L2J Classic Password Format    Function CryptPassword(ByVal password As String) As String        Dim raw As Byte()        raw = System.Text.Encoding.UTF8.GetBytes(password)         Dim shaCrypto As New System.Security.Cryptography.SHA1CryptoServiceProvider()        raw = shaCrypto.ComputeHash(raw)         Return Convert.ToBase64String(raw)    End Function 

Re: [Request] Visual Basic l2j password encryption

Posted: Sun Jul 29, 2012 3:05 pm
by jurchiks
Why VB in the first place?

Re: [Request] Visual Basic l2j password encryption

Posted: Sun Jul 29, 2012 8:47 pm
by Zoey76
jurchiks wrote:Why VB in the first place?
Please don't get off-topic.

Proper answer given, moved to viewforum.php?f=4