com.vexsoftware.votifier.crypto
Class RSAKeygen
java.lang.Object
com.vexsoftware.votifier.crypto.RSAKeygen
public class RSAKeygen
- extends Object
An RSA key pair generator.
- Author:
- Blake Beaupain
|
Method Summary |
static KeyPair |
generate(int bits)
Generates an RSA key pair. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSAKeygen
public RSAKeygen()
generate
public static KeyPair generate(int bits)
throws Exception
- Generates an RSA key pair.
- Parameters:
bits - The amount of bits
- Returns:
- The key pair
- Throws:
Exception
Copyright © 2013. All Rights Reserved.