Cross-platform passcode implementation for Titanium mobile