首页 > Web开发 > 详细

BASE64Encoder 的使用

时间:2015-04-14 07:20:23      阅读:239      评论:0      收藏:0      [点我收藏+]

public static void main(String[] args) throws IOException {


BASE64Encoder encoder = new BASE64Encoder();

System.out.println("Please input user name:");

String username= new BufferedReader(new InputStreamReader(System.in)).readLine();

System.out.println(encoder.encode(username.getBytes()));

System.out.println("please input password:");

String password=new BufferedReader(new InputStreamReader(System.in)).readLine();

System.out.println(encoder.encode(password.getBytes()));

}


BASE64Encoder 的使用

原文:http://5618698.blog.51cto.com/5608698/1632039

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!