Solved

JavaScript Hash: crc32 equivalent

Posted on 2008-06-19
1
403 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Echo images using file system 2 32
Php pie charts 3 26
A form to still have contents even if some are wrong 10 47
Before I get too far.. best way to save dates data 4 16
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
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.  …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now