Application of RESTful Method with JWT Security and Haversine Algorithm on Web Service-Based Teacher Attendance System

ABSTRACT


INTRODUCTION
In recent times, Ponpes Daarul Muttaqien II has implemented a teacher attendance system utilizing fingerprint recognition technology.However, this system has encountered challenges related to accuracy due to the potential errors caused by unclean fingerprint scanners.To address this issue, teachers often resort to manually updating their Journal homepage: https://journal.pandawan.id/italic❒ P-ISSN: 2963-6086, E-ISSN: 2963-1939 attendance records, primarily driven by reasons such as forgotten attendance, damaged fingerprints, and overlooked instances [1].
The task of managing attendance updates falls under the purview of the Human Resources Bureau, which receives attendance updates from approximately 28 instructors within a six-day working period, equivalent to one week.Notably, statistical analysis reveals that 30% of instructors update their attendance due to finger injuries that hinder accurate fingerprint recognition, while the remaining 70% do so because of occasional lapses in memory.
The prevailing circumstances, including the COVID-19 pandemic, have prompted a shift in work dynamics, urging various organizations, including Ponpes Daarul Muttaqien II, to adopt remote work policies [2], [3].Consequently, only specific departments, such as the technical and security sectors, require physical presence at the institution.However, the use of fingerprints for attendance tracking raises concerns, as it can potentially facilitate the transmission chain of the COVID-19 virus.
This study suggests the construction of a web service-based solution to overcome these issues and produce a system for attendance recording that is more secure and effective.This system makes use of the Haversine Formula Algorithm, JWT (JSON Web Token) security, and the REST (Representational State Transfer) architectural design [4], [5].This online attendance system guarantees that instructors may register their attendance only when they are within a predetermined proximity of 100 meters from a specific coordinate point by using a RESTful API (Application Programming Interface) approach [6].
Monitoring attendance, tracking arrival and delay times, and recording absences are some of the main features of this suggested system.Additionally, the system creates room for future development by using cutting-edge methods like facial recognition to better verify attendance records and discourage fraud [7].
Finally, a possible method to improve the precision, dependability, and security of the Ponpes Daarul Muttaqien II teacher attendance system is provided by the combination of RESTful principles, JWT security, and the Haversine Formula Algorithm [8].This strategy uses cutting-edge web service technologies to solve current issues while also laying the groundwork for future improvements that will increase attendance management's overall efficacy.

LITERATURE REVIEW
At Ponpes Daarul Muttaqien II, the integration of fingerprint-based methods for tracking teacher attendance has been effectively implemented.However, a persistent issue develops when the fingerprint scanner is hacked, leading to frequent identification mistakes.To address any discrepancies, teachers frequently submit attendance update forms.These revisions are the result of three main issues: instances of absenteeism, problematic fingerprints, and instances of undiscovered fingerprints.Within a period of six working days, or one week, the Human Resources Bureau normally gets attendance updates from about 28 teachers [9].Examining the data indicates that 70% of teachers update their attendance owing to memory gaps, whereas 30% of teachers change their attendance due to finger ailments that prevent accurate fingerprint recognition.
The ongoing global pandemic has significantly reshaped work dynamics, prompting various organizations, including Ponpes Daarul Muttaqien II, to advocate for remote work arrangements.Consequently, attendance at the institution is now primarily required for specific sectors such as technical and security departments.Given the prevailing COVID-19 pandemic, there is a heightened concern that fingerprint-based attendance systems could inadvertently contribute to the spread of the virus.Hence, this study proposes an innovative approach: an attendance system grounded in web services, incorporating the Fire REST method bolstered by Jwt security and the Haversine Formula Algorithm [10], [11].
The proposed online service attendance system follows the rules of a RESTful API (Application Programming Interface) and is strengthened by the JWT (JSON Web Token) security protocol and the Haversine Formula Algorithm.Employees must be within a 100-meter radius of the prescribed coordinate point in order to be allowed to record their attendance.With the help of this program, you can keep track of everyone's absences, tardiness, and attendance status in detail.This system might be further developed to ❒ include attendance validation, thereby reducing the possibility for fraudulent actions within the attendance system, with the ability to include additional technologies like facial recognition [12].
In essence, this study advocates for the adoption of a modern and secure attendance system that moves beyond fingerprint-based approaches, which have demonstrated vulnerability to errors, contamination, and potential health risks amidst the ongoing pandemic.The proposed web service-based system not only ensures precise attendance recording but also opens avenues to incorporate advanced technologies for heightened validation and security [13].

METHOD 1. System Design and Architecture
• Define the core objectives of the attendance system within the context of Ponpes Daarul Muttaqien II.
• Assess the limitations of the existing fingerprint-based system, particularly in light of COVID-19 concerns.• Develop a comprehensive system architecture that accommodates alternative attendance methods while ensuring data security.

Data Collection and Analysis
• Collect attendance data from the current fingerprint-based system, focusing on instances of attendance updates.• Perform a detailed analysis of the collected data to ascertain trends and factors triggering attendance modifications.• Categorize the reasons behind attendance updates, including instances of forgotten attendance, damaged fingerprints, and previously unnoticed absences.

System Development
• Construct a dynamic web service-oriented attendance platform by adopting the RESTful API paradigm.• Integrate robust security measures through the implementation of JSON Web Token (JWT) protocols to guarantee secure data transmission.• Incorporate the Haversine Formula Algorithm to facilitate accurate distance calculations and efficient coordinate point management.
• Create an intuitive and user-friendly online interface to facilitate attendance updates by teachers.

Geo-Fencing and Attendance Processing
• Define a central coordinate point to serve as the epicenter for attendance marking.
• Develop a geo-fencing mechanism to confine attendance recording to a defined radius of 100 meters around the designated coordinate.• Formulate algorithms to meticulously track arrival times, instances of delays, and the status of absences.

Attendance Validation and Fraud Prevention
• Investigate the viability of integrating facial recognition technology to enhance attendance validation.• Explore the potential expansion of the system to encompass facial recognition functionalities.
• Emphasize how the integration of facial recognition contributes to curbing fraudulent activities within the attendance system.

Testing and Implementation
• Conduct a rigorous testing phase to validate the functionality and reliability of the newly developed attendance system.• Evaluate the performance of key features, including geo-fencing and attendance tracking, across various devices and browser platforms.• Address any identified issues and refine the system prior to deployment.

User Training and Deployment
• Organize comprehensive training sessions to familiarize teachers and administrative staff with the operational aspects of the revamped attendance system.• Execute a controlled deployment of the web service-based attendance system within Ponpes Daarul Muttaqien II.• Solicit ongoing feedback from users to ensure a seamless transition and identify potential areas for enhancement.

Continuous Improvement and Future Enhancements
• Leverage user feedback to identify opportunities for system enhancement and refinement.
• Outline a roadmap for future system developments, including the exploration of advanced validation techniques.• Maintain flexibility to adapt the system to evolving needs and emerging technologies.

RESULTS AND DISCUSSION
The outcomes of the implementation of the teacher attendance system at Ponpes Daarul Muttaqien II, which utilizes fingerprint recognition, offer valuable insights into the realm of attendance tracking and management.In this section, we delve into the primary findings and engage in a comprehensive discussion based on the study's objectives and data analysis [14], [15].

Challenges in Fingerprint Recognition:
The system's effectiveness is notably influenced by the cleanliness of the fingerprint scanner.Instances of recognition errors are observed when the scanner is contaminated, leading to inaccuracies in individual identification [16].These challenges underscore the necessity for a robust and dependable attendance tracking mechanism.

Attendance Update Motivations:
The process of updating attendance entails several factors, including cases of forgotten attendance, compromised fingerprint readability, and instances of overlooked absences.Statistical analysis reveals that finger injuries, which impede accurate fingerprint recognition, contribute to about 30% of attendance updates [17].Meanwhile, approximately 70% of updates are linked to instances of overlooked attendance.This data emphasizes the importance of introducing flexible methods for attendance correction to cater to diverse scenarios.

Impact of the COVID-19 Pandemic:
The prevailing COVID-19 pandemic has triggered transformative shifts within various institutions, including Ponpes Daarul Muttaqien II, prompting the adoption of remote work arrangements.Consequently, the requirement for physical presence is limited to specific sections [18].The pandemic has also raised concerns regarding the utilization of fingerprints for attendance due to potential virus transmission, thus underscoring the need for exploring alternative attendance tracking approaches.To address the aforementioned challenges and align with evolving requirements, we propose the implementation of a Web service-based attendance system.This system is built upon the foundation of the Fire REST Method, fortified by JWT Security, and incorporates the precision of the Haversine Formula Algorithm [19], [20].The integration of the JSON Web Token (JWT) security protocol serves to augment data protection, while the Haversine Formula Algorithm ensures the accurate tracking of attendance based on geographical location [21].

Geolocation Constraints:
A pivotal facet of the suggested system involves the imposition of geolocation constraints, allowing employees to record their attendance solely when they are within a 100-meter radius of the designated coordinate point [22].This feature not only bolsters the integrity of attendance data but also substantially curbs the potential for unauthorized and fraudulent entries.

Holistic Attendance Monitoring:
The proposed online service attendance system offers an all-encompassing perspective by meticulously monitoring attendance status, arrival times, instances of delays, and absence occurrences [23].This detailed insight equips administrators with a comprehensive understanding of attendance trends, thereby facilitating informed decision-making processes.

Future Prospects:
An intriguing avenue for future expansion lies in the potential incorporation of facial recognition technology into the application.By exploring supplementary authentication methodologies, the system could further fortify its resilience against fraudulent activities, enhancing overall security [24].
In summary, this study underscores the paramount importance of a dynamic and adaptable attendance tracking system within educational institutions.The proposed Web service-based solution, characterized by RESTful API, JWT Security, and the Haversine Formula Algorithm, offers a promising resolution to the challenges inherent in the current fingerprint-dependent system [25].Through meticulous geolocation-based attendance tracking and the possible integration of facial recognition, the system exhibits the potential to elevate attendance management, deter fraudulent practices, and seamlessly adapt to evolving organizational requisites.

CONCLUSION
To sum up, the implementation of a dependable and efficient teacher attendance system within Ponpes Daarul Muttaqien II, initially incorporating fingerprint recognition, has been thoroughly explored through this research.This system encountered challenges when the fingerprint scanner's functionality was compromised, leading to frequent inaccuracies in recognizing individuals.The attendance updating process, involving a substantial number of teachers who regularly update their attendance status, unveiled three primary motives for these updates: instances of forgotten attendance, fingerprint damage, and unnoticed absences.
Efficiently managing attendance updates for around 28 instructors within a six-day working timeframe, or a week, has been a successful practice carried out by the Human Resources Bureau.Analyzing the patterns of attendance updates revealed that approximately 30% of instructors modified their attendance records due to finger injuries that hindered proper fingerprint recognition, while the remaining 70% made revisions due to forgetfulness.
The ongoing COVID-19 pandemic has ushered in shifts in work dynamics, with remote work setups becoming the norm.Correspondingly, the specific operational needs of Ponpes Daarul Muttaqien II have necessitated the physical presence of teachers only in designated sections, such as the technical and security departments.The evident risks

Application of RESTful Method with JWT Security and Haversine Algorithm on Web
Service-Based Teacher Attendance System (Suryari Purnama) ❒ P-ISSN: 2963-6086, E-ISSN: 2963-1939 associated with using fingerprint-based attendance methods in the context of COVID-19 transmission have raised the need for an alternative approach.
In response to these challenges, this study proposes an innovative web-based attendance system that leverages the RESTful API methodology, JWT (JSON Web Token) security protocol, and the Haversine Formula Algorithm.This novel system ensures that an employee's attendance is recorded only when they are within 100 meters of the specified coordinate point.The application adeptly tracks attendance statuses, arrival times, delays, and instances of absence.
Moreover, envisioning the potential expansion of this system to encompass facial recognition as an added validation technique holds promise for further enhancing the accuracy of attendance records and mitigating fraudulent activities.By embracing these advancements, the suggested attendance system offers a feasible resolution to the limitations posed by fingerprint-based methods.
In essence, this study underscores the vital importance of adaptable and secure attendance systems, particularly within the evolving landscape of remote work arrangements and health-related considerations.The integration of RESTful API, JWT security, and the Haversine Algorithm provides a robust framework that not only ensures precise attendance recording but also introduces avenues for future refinements and the prevention of fraudulent activities within the attendance tracking process.