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.

Reaz Murshed
  • 23,691
  • 13
  • 78
  • 98
CrazyD
  • 13
  • 1
  • 7
  • 1
    Refer http://stackoverflow.com/questions/16458564/convert-string-to-ascii-numeric-value-in-java and http://stackoverflow.com/questions/26724576/how-to-cast-string-to-ascii-value-in-java – Unknown Apr 24 '16 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. – Artjom B. Apr 24 '16 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. – CrazyD Apr 27 '16 at 18:08

0 Answers0