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!
[Request] Visual Basic l2j password encryption
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 13
- Joined: Mon Jul 16, 2012 6:53 pm
-
- L2j Veteran
- Posts: 208
- Joined: Thu Jul 27, 2006 11:03 am
- Location: Italy
Re: [Request] Visual Basic l2j password encryption
Here's the function
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
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [Request] Visual Basic l2j password encryption
Why VB in the first place?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: [Request] Visual Basic l2j password encryption
Please don't get off-topic.jurchiks wrote:Why VB in the first place?
Proper answer given, moved to viewforum.php?f=4
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!