How to Add MD5 to Database!

Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    How to Add MD5 to Database!

    if you want to add MD5 to your current DB you are in the right place :P

    1. Go to enterprise manager -> MuOnline DB -> stored procedures
    2. Create all this procedures

    a)

    CREATE PROCEDURE SP_MD5_ENCODE_VALUE

    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)

    --RETURNS BINARY(16)
    --Created By WebZen
    --Adapted By [CzF]Deathway
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)

    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    RETURN @btOutVal
    END

    GO


    b)

    CREATE PROCEDURE [dbo].[Encript]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)
    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    END

    GO


    c)

    CREATE PROCEDURE [dbo].[Encripta]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS

    BEGIN
    DECLARE @btOutVal BINARY(16)

    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT

    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    END

    GO


    d)


    /****** Object: Stored Procedure dbo.Cassandra_MD5 Script Date: 03/09/2006 22.53.35 ******/
    CREATE PROCEDURE [dbo].[Cassandra_MD5]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)
    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    SELECT @btOutVal
    END



    GO


    3. Voil
    Attached Files Attached Files


  2. #2
    [MBT]Disconnect Disconnect1 is offline
    MemberRank
    Apr 2006 Join Date
    C:\Windows...Location
    969Posts

    Re: [Guide] How to Add MD5 to Database!

    Hmm.... for me:
    1. Go to MuOnline > Tables > Design Table MEMB_INFO, set
    memb__pwd varbinary 16 NO NULL
    2. Put the 'WZ_MD5_MOD.dll' in C:\Program Files\Microsoft SQL Server\MSSQL\Binn\
    3. Run this script:
    Code:
    USE [master]
    GO
    
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[XP_MD5_EncodeKeyVal]') and OBJECTPROPERTY(id, N'IsExtendedProc') = 1)
    exec sp_dropextendedproc N'[dbo].[XP_MD5_EncodeKeyVal]'
    GO
    
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS OFF 
    GO
    
    exec sp_addextendedproc N'XP_MD5_EncodeKeyVal', N'WZ_MD5_MOD.dll'
    GO
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS ON 
    GO
    
    
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[XP_MD5_CheckValue]') and OBJECTPROPERTY(id, N'IsExtendedProc') = 1)
    exec sp_dropextendedproc N'[dbo].[XP_MD5_CheckValue]'
    GO
    
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS OFF 
    GO
    
    exec sp_addextendedproc N'XP_MD5_CheckValue', N'WZ_MD5_MOD.dll'
    GO
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS ON 
    GO
    
    USE [MuOnline]
    GO
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SP_MD5_ENCODE_VALUE]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure [dbo].[SP_MD5_ENCODE_VALUE]
    GO
    
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS OFF 
    GO
    
    CREATE PROCEDURE SP_MD5_ENCODE_VALUE 
    
    	@btInStr		VARCHAR(10),
    	@btInStrIndex		VARCHAR(10)
    
    --RETURNS BINARY(16)
    --Created By WebZen
    --Adapted By [CzF]Deathway
    AS  
    BEGIN 
    	DECLARE	@btOutVal	BINARY(16)
    
    	EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    	UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    	RETURN 	@btOutVal
    END
    GO
    SET QUOTED_IDENTIFIER OFF 
    GO
    SET ANSI_NULLS ON 
    GO
    4. Then replace your JoinServer
    5. Install website MD5 on
    6. Install Editor MD5 on

    That`s all :D

  3. #3
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    Re: [Guide] How to Add MD5 to Database!

    yea lol thanks mate, i was gonna add that but too lazy xD

  4. #4
    Member gum12345 is offline
    MemberRank
    Apr 2008 Join Date
    51Posts

    Re: [Guide] How to Add MD5 to Database!

    how about how to change MD5 to a none md5?

  5. #5
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    Re: [Guide] How to Add MD5 to Database!

    there was one thread about that already, and answered too.. was GALACTICO's if i remember right

  6. #6
    Apprentice euronimus is offline
    MemberRank
    Jul 2006 Join Date
    LithuaniaLocation
    10Posts

    Re: [Guide] How to Add MD5 to Database!

    i have problem, i been do all of this tutorial. but when I connect to my server, and write login and pass, i have error -> password incorrect.. help

  7. #7
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    Re: [Guide] How to Add MD5 to Database!

    your Joinserver is non-md5, for md5 JS.. take a look to my attachments :)
    Attached Files Attached Files

  8. #8
    Alpha Member Maxim.T is offline
    MemberRank
    Nov 2006 Join Date
    RussiaLocation
    1,834Posts

    Re: [Guide] How to Add MD5 to Database!

    Thanks , been looking for this

  9. #9
    Apprentice iago94 is offline
    MemberRank
    Aug 2008 Join Date
    21Posts

    Re: [Guide] How to Add MD5 to Database!

    how do i remove Md5?

  10. #10
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide] How to Add MD5 to Database!

    [QUOTE=Shatter;3576038]if you want to add MD5 to your current DB you are in the right place :P

    1. Go to enterprise manager -> MuOnline DB -> stored procedures
    2. Create all this procedures

    a)

    CREATE PROCEDURE SP_MD5_ENCODE_VALUE

    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)

    --RETURNS BINARY(16)
    --Created By WebZen
    --Adapted By [CzF]Deathway
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)

    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    RETURN @btOutVal
    END

    GO


    b)

    CREATE PROCEDURE [dbo].[Encript]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)
    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    END

    GO


    c)

    CREATE PROCEDURE [dbo].[Encripta]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS

    BEGIN
    DECLARE @btOutVal BINARY(16)

    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT

    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    END

    GO


    d)


    /****** Object: Stored Procedure dbo.Cassandra_MD5 Script Date: 03/09/2006 22.53.35 ******/
    CREATE PROCEDURE [dbo].[Cassandra_MD5]
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)
    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    SELECT @btOutVal
    END



    GO


    3. Voil

  11. #11
    Apprentice smithcyber is offline
    MemberRank
    Nov 2004 Join Date
    BRASILLocation
    16Posts

    Re: [Guide] How to Add MD5 to Database!

    WORK in 97d version?

  12. #12
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide] How to Add MD5 to Database!

    when i try to change memb_pwd to varbinary (16) it says i cant change it. "i have to drop the table first and then recreated" How can i change it? i have in varchar (10) right now (Im using MSSQL 2008)

    SS

    Last edited by KREATOR; 21-03-09 at 05:15 PM.

  13. #13
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    Re: [Guide] How to Add MD5 to Database!

    thats caused because you have muserver running or its in use by SQL, restart computer and edit it, should be fine.

  14. #14
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide] How to Add MD5 to Database!

    i had just rebooted my pc, and my server was off at that moment...

  15. #15
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: [Guide] How to Add MD5 to Database!

    Kreator i don't think u can change that.

    i would suggest u drop the memb_pwd and add it again as what u wanted.

  16. #16
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide] How to Add MD5 to Database!

    i just noticed that if i leave it with varbinary(50) it will let me change it. When I try to change it there is varbinary(50) and varbinary(MAX). I choose varbiynary(50) and then change the 50 for 16 and it does not let me change it but if I leave it varbinary(50) it will let me change. Does it still work with varbinary(50) if I wanna add MD5 to my DB?

  17. #17
    Account Upgraded | Title Enabled! FCV2005 is offline
    MemberRank
    Mar 2007 Join Date
    RomaniaLocation
    1,080Posts

    Re: How to Add MD5 to Database!

    how i can remove md5 from DB ?

  18. #18
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: How to Add MD5 to Database!

    Quote Originally Posted by FCV2005 View Post
    how i can remove md5 from DB ?
    you don't have to.. just use a non md5 joinserver.. always worked flawless for me..

    (ofcoarse, if you have players in your db, you will have to find a way to decode their md5 passwords)

  19. #19
    Member dieweb is offline
    MemberRank
    Jan 2005 Join Date
    dantoncusLocation
    80Posts

    Re: How to Add MD5 to Database!

    Someone has WZ_MD5_MOD.dll adapted on windows 64 Bit?? Thanx
    Because its dont work on my server windows 64 bit (MSSQL 2008)

  20. #20
    Apprentice Trane23 is offline
    MemberRank
    Sep 2008 Join Date
    7Posts

    Re: How to Add MD5 to Database!

    Yeah i need MD5 for x64 too, who has it???

  21. #21
    Enthusiast canddy is offline
    MemberRank
    Oct 2005 Join Date
    skudaiLocation
    43Posts

    Re: How to Add MD5 to Database!

    failed...
    i patch cs n js ,cannot open it
    open and nothing happed

  22. #22
    Member barry952 is offline
    MemberRank
    Oct 2008 Join Date
    71Posts

    Re: How to Add MD5 to Database!

    I also need md5 for x64....my web isnt working for logins with normal md5........even thoe db queries says already installed

  23. #23
    Account Upgraded | Title Enabled! JoniverPH is offline
    MemberRank
    May 2006 Join Date
    PilipinasLocation
    290Posts

    Re: How to Add MD5 to Database!

    I've been searching for this

  24. #24
    Apprentice Sarzoc is offline
    MemberRank
    Nov 2009 Join Date
    Spain/LaSeniaLocation
    22Posts

    Re: How to Add MD5 to Database!

    I use MuServer 1.00l and MuWeb 0.8, I try to create a account but,when I do it it says account succesfully created....but I can't actually log in into that account,neither on the website. Help ?

    ---------- Post added at 09:59 AM ---------- Previous post was at 09:47 AM ----------

    Dude! I still can't create an account from the website,and now its even more fcked up , it says my password is invalid, IT WORKED BEFORE! Did this guide help me ?Well not really, now I am asking for help. What do I do now ?

  25. #25
    Enthusiast extrmndor3 is offline
    MemberRank
    Dec 2010 Join Date
    41Posts

    Re: How to Add MD5 to Database!

    shatter.. or anyone with good knowledge

    i used your(shatter) 99%bugless server configuration..(wich i think your server backup database to restore were made for md5)i try to get on options and change md5 option to none on joinserver.. i went to sql and changed varbinary to varchar..(allow nulls and changed the character or something from 50 and 15 and some other and still) but somehow.. all the accounts get created succesfully but when i get in to the game.. i cant even join.. says my accounts are invalids... and yes i tried several joinservers



Page 1 of 2 12 LastLast

Advertisement