public class AsyKey extends Object
Constructor and Description |
---|
AsyKey() |
Modifier and Type | Method and Description |
---|---|
static Key |
buildPrivateKey(BigInteger kmod,
BigInteger kexp) |
static Key |
buildPublicKey(BigInteger kmod,
BigInteger kexp) |
static byte[] |
decrypt(Key key,
byte[] ciphertxt,
int off,
int len) |
static byte[] |
decryptData(Key key,
byte[] encdata,
int off,
int len) |
static byte[] |
encrypt(Key key,
byte[] plaintxt,
int off,
int len) |
static byte[] |
encryptData(Key key,
byte[] plaintxt,
int off,
int len) |
static BigInteger[] |
generateKeyPair() |
public static byte[] encryptData(Key key, byte[] plaintxt, int off, int len) throws GeneralSecurityException
GeneralSecurityException
public static byte[] decryptData(Key key, byte[] encdata, int off, int len) throws GeneralSecurityException
GeneralSecurityException
public static BigInteger[] generateKeyPair() throws GeneralSecurityException
GeneralSecurityException
public static Key buildPublicKey(BigInteger kmod, BigInteger kexp) throws GeneralSecurityException
GeneralSecurityException
public static Key buildPrivateKey(BigInteger kmod, BigInteger kexp) throws GeneralSecurityException
GeneralSecurityException
public static byte[] encrypt(Key key, byte[] plaintxt, int off, int len) throws GeneralSecurityException
GeneralSecurityException
public static byte[] decrypt(Key key, byte[] ciphertxt, int off, int len) throws GeneralSecurityException
GeneralSecurityException
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.