There is a base64 encryption and decryption method
Import sun. misc. *; public class bytetoint {public static void main (string ARGs []) {string num = "iidwaae *"; // double numdou = double. parsedouble (Num); // double numdou = double. valueof (Num); byte [] numchar = num. getbytes (); num = getbase64 ("4309024904"); system. out. println (Num); system. out. println (getfrombase64 (Num);} // encode s with base64 public static string getbase64 (string s) {If (S = NULL) return NULL; Return (new sun. misc. base64encoder ()). encode (S. getbytes ();} public static string getfrombase64 (string s) {If (S = NULL) return NULL; base64decoder decoder = new base64decoder (); try {byte [] B = decoder. decodebuffer (s); // system. out. println (B); return new string (B) ;}catch (exception e) {return NULL ;}}}
An error may be reported at the beginning of writing, which requires you to go to Windows> preferences> JAVA> errors/wanrnings> deprecated and restricted API and change it to warning to run.