Jump to content
LaunchBox Community Forums

aaron_smith4

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by aaron_smith4

  1. Javascript:

    const password = "TestPw";
    
    password
        .split('') 
        .map(letter => letter.charCodeAt() 
                         .toString(2) 
        ) 
        .join(' ');

    Java:(I copied this code, I'm not sure about this)

    public static String toText(String info)throws UnsupportedEncodingException{
            byte[] encoded = info.getBytes();
            String text = new String(encoded, "UTF-8");
            System.out.println("print: "+text);
            return text;
        }

     

×
×
  • Create New...