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

com.bitbucket.thinbus.srp6.js.SRP6JavaClientSessionSHA256 Maven / Gradle / Ivy

Go to download

Complete Secure Remote Password (SRP-6a) client session implementation written in Javascript / EMCAScript with a compatible server implementation written with Java Nimbus SRP6a.

There is a newer version: 1.6.2
Show newest version
package com.bitbucket.thinbus.srp6.js;

import com.nimbusds.srp6.SRP6CryptoParams;

public class SRP6JavaClientSessionSHA256 extends SRP6JavaClientSession {
	/**
	 * Create a SHA256 Java client session compatible with a thinbus server
	 * session.
	 * 
	 * You can generate your own with openssl see {@link OpenSSLCryptoConfigConverter}
	 * 
	 * @param N
	 *            The large safe prime in radix10
	 * @param g
	 *            The safe prime generator in radix10
	 */
	public SRP6JavaClientSessionSHA256(String N, String g) {
		super(new SRP6CryptoParams(SRP6JavascriptServerSession.fromDecimal(N),
				SRP6JavascriptServerSession.fromDecimal(g),
				SRP6JavascriptServerSessionSHA256.SHA_256));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy