Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Encrypt Password to MD5 with SQL query

Junior Spellweaver
Joined
Jan 13, 2010
Messages
105
Reaction score
7
As my title, i would like to share about nowdays i found a solution about MD5 register in game :)

USE [RanUser]
GO
/****** Object: StoredProcedure [dbo].[Reg_MD5] Script Date: 04/16/2016 05:46:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
---------------------------
CREATE proc [dbo].[Reg_MD5]
@username varchar(20),
@userpass varchar(20),
@userpass2 varchar(20),
@var varchar(20)

as
set @var = SUBSTRING(master.dbo.fn_varbintohexstr(HashBytes('MD5', @Userpass)), 3, 19)
Insert into Userinfo (UserName,UserID,Userpass,Userpass2,UserType) Values (@username,@username,@userpass,@userpass2,'1')

If this work to your all~ just press a like to me :p



if wanna Register
just exec reg_md5 id,pass,delpass

Example
Code:
Use RanUser
exec reg_md5 jetyao95,12345,12345
 
Back
Top