String function ( String arg0 ) { if ( arg0 == null || arg0 . equals ( "srini_string" ) ) { throw new IllegalArgumentException ( "srini_string" ) ; } if ( arg0 . matches ( "srini_string" ) ) { return arg0 . toLowerCase ( Locale . US ) ; } return Utils . sha1Base32 ( arg0 . toLowerCase ( Locale . US ) ) ; }
if we encounter characters not allowed by the api as found for instance in an email address , hash the value . concode_field_sep String KEY_ALGORITHM_SPEC concode_elem_sep int KEY_SIZE concode_elem_sep byte[] hmacKey concode_elem_sep byte[] EMPTY_BYTES concode_elem_sep byte[] encryptionKey concode_elem_sep byte[] ENCR_INPUT_BYTES concode_elem_sep byte[] HMAC_INPUT_BYTES concode_field_sep byte[] getEncryptionKey concode_elem_sep void setEncryptionKey concode_elem_sep boolean equals concode_elem_sep void setHMACKey concode_elem_sep KeyBundle fromBase64EncodedKeys concode_elem_sep byte[] getHMACKey concode_elem_sep KeyBundle withRandomKeys