cryptography « biginteger « Java Data Type Q&A

1. Why doesn't my implementation of ElGamal work for long text strings?

I'm playing with the El Gamal cryptosystem, and my goal is to be able to encipher and decipher long sequences of text. El Gamal requires the plaintext to be an integer. ...

2. how to convert BigInteger to String in java

i converted a string to BigInteger as follows:

 Scanner sc=new Scanner(;
      System.out.println("enter the message");

3. Java AES Encryption/Decryption using a BigInteger as a key

Is it possible to encrypt/decrypt a string using AES with a BigInteger (given one, not a randomly generated number) as a key in Java?