Completed initial work on encryption code.