All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.thinbus-srp6client-sha1.js Maven / Gradle / Ivy

/**
This is NOT recommended as it uses a weaker hash. 

On the server use the matching java class: 

	com.nimbusds.srp6.js.SRP6JavascriptServerSessionSHA1
	
*/

function SRP6JavascriptClientSessionSHA1(){ }

SRP6JavascriptClientSessionSHA1.prototype = new SRP6JavascriptClientSession();

SRP6JavascriptClientSessionSHA1.prototype.N = function() {
	return new BigInteger(SRP6CryptoParams.N_base10, 10);
}

SRP6JavascriptClientSessionSHA1.prototype.g = function() {
	return new BigInteger(SRP6CryptoParams.g_base10, 10);
}

SRP6JavascriptClientSessionSHA1.prototype.H = function (x) {
		return CryptoJS.SHA1(x).toString().toLowerCase();
}

SRP6JavascriptClientSessionSHA1.prototype.k = new BigInteger(SRP6CryptoParams.k_base16, 16);





© 2015 - 2025 Weber Informatics LLC | Privacy Policy