Package com.bitbucket.thinbus.srp6.js
Class OpenSSLCryptoConfigConverter
- java.lang.Object
-
- com.bitbucket.thinbus.srp6.js.OpenSSLCryptoConfigConverter
-
public class OpenSSLCryptoConfigConverter extends Object
A class to parse the output of 'openssl dhparam -text bits' where bits is the prime number bit length. Will output 'N', 'g', 'k' in bases 10, 10, 16 respectively. Note that k is derived from 'N' and 'g' but Nimbus 1.4.x currently uses a the byte array constructor of BigInteger to computes 'k' which is not available in Javascript so the value genenerated by Java needs to be configure in the Javascript.
-
-
Constructor Summary
Constructors Constructor Description OpenSSLCryptoConfigConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)List<String>run(String hash, List<String> lines)
-