|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Javascript & MD5 encryption
I want to encrypt a string with MD5 using Javascript. I have found two references, the first is
[js] var encryptedstring=hex_md5("hello"); document.write(ecryptedstring); [/js] which doesn't work. The second is a massive javascript code located at http://pajhome.org.uk/crypt/md5/index.html which is quite impressive. Is there a simple Javascript md5() command similar to the PHP md5() command? If so, can you provide it with the correct syntax. Thanks. |
|
#2
|
|||
|
|||
|
RE: Javascript & MD5 encryption
http://dev.krook.org/cipher.html
IS that something you want? |
|
#3
|
|||
|
|||
|
RE: Javascript & MD5 encryption
Nope, this webpage calls another document (cipher.js) which is a long series of mathematical functions that alters a string into another encrypted string (according to the authors encryption scheme). I am looking for a single javascript command that returns the md5 checksum of a string - not extraneous pages of mathematical hex/binary rotations and conversions.
|
|
#4
|
|||
|
|||
|
RE: Javascript & MD5 encryption
There is no hash function implemented in JavaScript. You will have to use that external js file.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Javascript & MD5 encryption |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|