(Comp.sys.handhelds) Item: 3053 by erikmb at etek.chalmers.se Author: [Erik Bryntse] Subj: GATEWAY 2.7 codelock program Date: Wed May 08 1991 Here is my codelock program GATEWAY version 2.7. The alarm bug that existed in version 2.6 is fixed, and some other details has been added. Now you can store the OWNER string in a port to get it away from your home directory. I have not heard much of this program since I released the previous version. This can mean 1) nobody is using it or 2) it is working well. So, I would like to hear from you if you find any bugs, or have ideas, or just think the program is working well! GATEWAY-48 Codelock Program ver 2.7 =================================== GATEWAY-48 is a codelock program for HP48SX. When your HP48SX is turned on, it displays a startup message (for example your name and phone number) and prompts you for a 4-digit code. If you key in the correct code, your 48 is turned on just like usual. Other- wise it is turned off again. With GATEWAY-48 you have complete software protection and enough hardware protection to keep people from messing with your calcu- lator. If you know how, you CAN get in without knowing the right code, but the memory will be cleared in the process. All normal stuff such as ON-C and ON-A-F will not work. A lot of work has been spent on the user interface and ruggedness of GATEWAY-48. This means that - You can easily change the code. - There is a built-in program to redefine the OFF key. - You can provide a startup message like "Owned by XXYY". - All is contained in one library, which cannot be modified. - The code cannot be accidentally changed, since it is stored with a checksum. - Alarms are allowed to execute even if the codelock is enabled, but when the execution finishes, the calculator is turned off again. - There is a built-in program to remove GATEWAY-48 from your 48. INSTRUCTIONS ============ If you have something you do not wish to risk losing in your calculator, make a backup. Download the string at the end of this message to your 48. Compile it using ASC->. Store the resulting library with 0 STO. Turn off your 48, then on again. You will see a short message when the lib- rary installs. Now press the LIBRARY menu key. There will now be a menu named GATEWAY-48. In this menu you will find the following programs: ASSIGN ------ Assigns the off key to the new off program OFFC. Turns on USER mode. NEWCODE ------- Enables you to enter or change the code. Run this after installing GATEWAY-48. The first time you run it, it will only prompt you for the new code, but normally you must key in the old code as well. REMOVE ------ Uninstalls the GATEWAY-48 library and clears key definitions. Also removes the hidden code. OFFC ---- The main code program. Turns off your 48 enabling the codelock. When you turn it back on, you have to key in a four-digit code to gain access to your 48. Note that it will not work if you haven't selected a code using NEWCODE. ADDITIONAL INFORMATION ====================== You can display a message of your own when you turn your 48 on by storing a string under the name 'OWNER' in the home directory or in a port as X:OWNER, where X is the port nr. The codelock is not activated when the HP48 turns itself off to preserve battery. The OFFC user key assignment is sometimes cleared by other pro- grams or actions. Pressing the USR key once or twice (depending on the state of flag -61) or running the ASSIGN program will restore it. The program ASC->, written by William C Wickes, has been posted at Comp.sys.handhelds several times and is available from many FTP- sites. I will not provide source code. ---------------------------------------------------------------- GATEWAY-48 is Copyright Erik Bryntse 1991. Non-commercial distribution allowed. I take no responsibility for any damages caused by this program. ---------------------------------------------------------------- This program has been tested by people with different calculator versions and different software and hardware. Much work have been spent on correcting the reported bugs. Thank you all who helped me with this! Please send bug reports, questions, or suggestions to Erik Bryntse SHPRF (the HP User Club of Sweden) Box 15061 S-700 15 OREBRO SWEDEN erikmb@cd.chalmers.se