completed rudimentary encryption