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

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

package com.bitbucket.thinbus.srp6.js;

import com.nimbusds.srp6.SRP6CryptoParams;

public class SRP6JavaClientSessionSHA1 extends SRP6JavaClientSession {
	/**
	 * Create a SHA1 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 SRP6JavaClientSessionSHA1(String N, String g) {
		super(new SRP6CryptoParams(SRP6JavascriptServerSession.fromDecimal(N),
				SRP6JavascriptServerSession.fromDecimal(g),
				SRP6JavascriptServerSessionSHA1.SHA_1));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy