Backend code to handle data IO and encryption for ReePass applications