finished basics for encryption