asymmetricDecipher static method
Decrypt your data without handing the private key or generation seeds to decrypt it, which is the basic asymetric encryption purpose.
Implementation
static List<int> asymmetricDecipher({required List<int> data,required int? privateKey,required int? modulo}){
//Decrypt the data
List<int> decipheredData = [];
for(int i = 0;i < data.length; i++){
//Decrypt and add
decipheredData.add(data[i].modPow(privateKey!, modulo!));
}
//Return decrypted data
return decipheredData;
}