Solved

JavaScript Hash: crc32 equivalent

Posted on 2008-06-19
1
408 Views
Last Modified: 2009-12-16
I would like for JavaScript to return a hash for a word that is EXACTLY the same as PHP's crc32 function would return.

           <?php
           echo crc32("Hello");  //// Returns -137262718
           ?>

Now I want a JavaScript function to return "-137262718" for "Hello"

Is this reasonably possible?

Thanks!


0
Comment
Question by:hankknight
1 Comment
 
LVL 2

Accepted Solution

by:
kszurek earned 500 total points
ID: 21822254
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question