question: public static String bytesToBase64 ( byte [ ] bytes ) { if ( bytes == null ) { return null ; } return Base64 . encodeToString ( bytes , Base64 . NO_WRAP ) ; }
target:  Encode a byte array as a base64 string. This method should be used to convert from byte[]s accepted by Crypto.java and Strings stored in FriendStore.