Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String color = this.hexFortmat.substring(0, 6);
- ImageView colorBand1 = ((ImageView) DecompiledFile.this.findViewById(R.id.image_view1));
- ImageView colorBand2 = ((ImageView) DecompiledFile.this.findViewById(R.id.image_view2));
- ImageView colorBand3 = ((ImageView) DecompiledFile.this.findViewById(R.id.image_view3));
- String hexFortmat = DecompiledFile.bin2hex(this.mdbytes);
- byte[] mdbytes = DecompiledFile.generateHmacSHA256Signature(DecompiledFile.this.getSalt(), DecompiledFile.this.getColorBand());
- boolean performAllTimerFunctions = true;
- TextView specialInstruction = ((TextView) DecompiledFile.this.findViewById(R.id.textView9));
- boolean visibleColorBand = false;
- boolean visibleSpecialInstruction = false;
- public static byte[] generateHmacSHA256Signature(String data, String key) throws GeneralSecurityException, IOException {
- try {
- SecretKeySpec secretKey = new SecretKeySpec(key.getBytes(StringEncodings.UTF8), HMAC_SHA_256);
- Mac mac = Mac.getInstance(HMAC_SHA_256);
- mac.init(secretKey);
- return mac.doFinal(data.getBytes(StringEncodings.UTF8));
- } catch (UnsupportedEncodingException e) {
- throw new GeneralSecurityException(e);
- }
- }
- static String bin2hex(byte[] data) {
- return String.format("%0" + (data.length * 2) + "X", new Object[]{new BigInteger(1, data)});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement