public static byte[] decrypt(byte[] encoded_message) throws Exception {
        if (encoded_message[0] == (byte) 0x02) {
            int padding;
            for (padding = 1; encoded_message[padding] != (byte) 0x00; padding++) ;
            byte[] decoded_message = new byte[encoded_message.length - 1 - padding];
            System.arraycopy(encoded_message, padding + 1, decoded_message, 0, decoded_message.length);
            return decoded_message;
        } else return new byte[0];
    }