[Request] Visual Basic l2j password encryption

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
drizzlx
Posts: 13
Joined: Mon Jul 16, 2012 6:53 pm

[Request] Visual Basic l2j password encryption

Post 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!
mrTJO
L2j Veteran
L2j Veteran
Posts: 208
Joined: Thu Jul 27, 2006 11:03 am
Location: Italy

Re: [Request] Visual Basic l2j password encryption

Post 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 
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [Request] Visual Basic l2j password encryption

Post by jurchiks »

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.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: [Request] Visual Basic l2j password encryption

Post 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
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Post Reply