encryption implemented. needs a bit of old-fashioned testing