Results 1 to 5 of 5

Thread: [RESOLVED]Encryption problem (mhash)

Threaded View

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Resolved [RESOLVED]Encryption problem (mhash)

    PHP Code:
    $hash base64_encode(mhash(MHASH_SHA1utf8_encode(str_replace("\'""''"$new_password)))); 

    I am not getting an error message, rather, my program just freezes and doesnt go anywhere when I have this line in my code.


    Anyone have any ideas what might be causing this?



    I also have it as follows

    PHP Code:
    $replaced_password str_replace("\'""''"$new_password);
    echo 
    "passed replace";
    $utf_encoded utf8_encode($replaced_password);
    echo 
    "passed utf";
    $hash_encoded mhash(MHASH_SHA1$utf_encoded);
    echo 
    "passed hash";
    $base64_encoded base64_encode($hash_encoded);
    echo 
    "passed base64"
    and it freezes on mhash
    Last edited by kfcSmitty; Jul 15th, 2006 at 12:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width