Security Algorithm modified to bouncy castle

EMpty Settings error handling