encrypt static method

String encrypt(
  1. String priv,
  2. String pub,
  3. String text
)

Implementation

static String encrypt(String priv, String pub, String text) {
  return encryptWithAgreement(text, getAgreement(priv), pub);
}