I sent you an email with the code and instructions. I won't share it openly because I don't want to tempt people into finding security flaws for fun.
It's definitely not code that I'm proud of, but it's been serving me well for many years, and might help you get started.