0
public static String encrypt(int p, int q, int k, String m) {}

Hi I want to implement an encryption which does not use big integers, it should convert each character in a string to ASCII characters? Any ideas on how i would do this? Help will be appreciated.

3
  • 1
    Refer stackoverflow.com/questions/16458564/… and stackoverflow.com/questions/26724576/… Commented Apr 24, 2016 at 11:58
  • Even if you encrypt each character in the plaintext string separately, you will need BigInteger, because even small numbers for RSA quickly break out of the limited size for integers or longs in Java. Commented Apr 24, 2016 at 13:31
  • Thanks you so much, and ye i guess big integer is needed eventually however im just doing some very low level work and wont really use very large numbers as such. Commented Apr 27, 2016 at 18:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.