Discord Server Twitter Donation Youtube Google+
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Java] Convert String to Base64
#1
Big Grin 
In The Name Of Allah
Al-Salam Alekum

Hey guys, Converting text(String) to Base64 in Java:

Code:
       JTextField text = new JTextField();
       JFrame Converter = new JFrame("String to Base64");
       
       String love = "Red Security";
       String s = Base64.getEncoder().encodeToString(love.getBytes("utf-8"));
       
       Converter.add(text);
       text.setText(s);
       Converter.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       Converter.show();
       Converter.setSize(300, 100);


   

Wa Salam Alekum

[Image: 4Kxb0N1.gif]
We Are Anonymous, We Are Legion, We Do not Forgive, We do not Forget
Expect Us
Reply




Users browsing this thread: 1 Guest(s)