From 5c8a17447e382f9b9f9f241e293156a94162a1ca Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 12 Jul 2013 11:32:01 +0200 Subject: the 0 prefix in hex is essential for building the M and M2 strings --- src/srp_calculate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/srp_calculate.js b/src/srp_calculate.js index 8928114..93a4568 100644 --- a/src/srp_calculate.js +++ b/src/srp_calculate.js @@ -54,7 +54,7 @@ srp.Calculate = function() { }; this.hash = function(string) { - return removeLeading0(SHA256(string)); + return SHA256(string); }; -- cgit v1.2.3