You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
596 B
21 lines
596 B
/* |
|
Copyright (c) 2004-2006, The Dojo Foundation |
|
All Rights Reserved. |
|
|
|
Licensed under the Academic Free License version 2.1 or above OR the |
|
modified BSD license. For more information on Dojo licensing, see: |
|
|
|
http://dojotoolkit.org/community/licensing.shtml |
|
*/ |
|
|
|
/* |
|
dojo.require("dojo.crypto.SHA256"); |
|
|
|
function test_SHA256_compute(){ |
|
var message = "The rain in Spain falls mainly on the plain."; |
|
var hash = "Vt7FG/uDGhzhEE8FFG22iBL4AS5eq3F4agWMFTAEwxE="; |
|
|
|
var result = dojo.crypto.toBase64(dojo.crypto.SHA256.compute(message)); |
|
jum.assertEquals("SHA256 Compute Hash", hash, result); |
|
} |
|
*/
|
|
|