MD5 Problem

Results 1 to 4 of 4
  1. #1
    High'nLows 19871986 is offline
    MemberRank
    Sep 2010 Join Date
    istanbulLocation
    802Posts

    MD5 Problem

    message: Disallowed implicit conversion from data type varchar to data type varbinary, table 'MuOnline.dbo.MEMB_INFO', column 'memb__pwd'. Use the CONVERT function to run this query.


    thats problem while register at web, how i can fix it ?


  2. #2
    Valued Member KrYsSu is offline
    MemberRank
    Jan 2012 Join Date
    RomaniaLocation
    114Posts

    Re: MD5 Problem

    you need add rullz for MD5 and need DLL to put in MSQL.

    Oky so run this in sql query

    [CODE]
    CREATE FUNCTION [dbo].[fn_md5] (@data VARCHAR(10), @data2 VARCHAR(10))
    RETURNS BINARY(16) AS
    BEGIN
    DECLARE @hash BINARY(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal @data, @data2, @hash OUT
    RETURN @hash
    END
    [CODE]

    Good luck if the problem persist please share more info ! Your website Muweb,mucore !

    Thx

  3. #3
    High'nLows 19871986 is offline
    MemberRank
    Sep 2010 Join Date
    istanbulLocation
    802Posts

    Re: MD5 Problem

    problem still continue

    .dll is include mssql files and all tables supported for md5

    i need php function for change datatype

    my website is not muweb and mucore its a different engine dont have name :/

    - And my Register.php - signup with md5 code -


    if($Web['MD5'] == 1){
    $md5_code=" [dbo].[UFN_MD5_ENCODEVALUE]('$pw', '$login')";
    }
    else{
    $md5_code="$pw";
    }

  4. #4
    Proficient Member Alexell is offline
    MemberRank
    Oct 2008 Join Date
    150Posts

    Re: MD5 Problem

    1.Copy WZ_MD5_MOD.dll to C:\Program Files\Microsoft SQL Server\MSSQL\Binn
    2.new querry
    Code:
    USE MASTER
    EXEC SP_ADDEXTENDEDPROC 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'



Advertisement