adding encrypt function for FSS database