Here you can find the source of cryptRSA(byte[] data, BigInteger exponent, BigInteger modulus)
public static byte[] cryptRSA(byte[] data, BigInteger exponent, BigInteger modulus)
//package com.java2s; //License from project: Apache License import java.math.BigInteger; public class Main { public static byte[] cryptRSA(byte[] data, BigInteger exponent, BigInteger modulus) { return new BigInteger(data).modPow(exponent, modulus).toByteArray(); }//from w w w . ja v a 2 s . c o m }