Change int to uint where appropriate, base encryption on box data