public static byte[] hash(String input){
  if (!TextUtils.isEmpty(input)) {
    try {
      byte[] inputBytes=input.getBytes("UTF-8");
      return hash(inputBytes);
    }
 catch (    UnsupportedEncodingException e) {
      Log.e(TAG,"problem hashing \"" + input + "\" "+ e.getMessage(),e);
    }
  }
  return null;
}

public static byte [ ] hash ( String input ) { if ( ! TextUtils . isEmpty ( input ) ) { try { byte [ ] inputBytes = input . getBytes ( "UTF-8" ) ; return hash ( inputBytes ) ; } catch ( UnsupportedEncodingException e ) { Log . e ( TAG , "problem hashing \"" + input + "\" " + e . getMessage ( ) , e ) ; } } return null ; }
created sha256 of input
