You'll need to define 'usage'. If you want to track all system calls the user makes, it'll beyond what an average shell script can do. If you just want logins or something you'll need to pull that data from a log file - and it could be easier to just write something to interpret the log file directly rather than duplicate the info.
For the encryption. My previous question still stands - put another way: What are you encrypting? (How) do you intend to decrypt it later? Why are you encrypting it?
Cat doesn't encrypt but 'crypt' does - will that meet your needs or do you need a better encryption method than that?
You'll have to break it down into a more straight forward problem as at the moment the question is still highly general and without more context I can't begin to guess at the solution you'll need.
Start with what you have, then give a sample of what the output should look like and we'll work inwards to find how the middle stuff should work
Try thinking of it from the script's point of view:
What data do you have available to you?
What format is it in?
What data do you need to record?
Out of that data, what needs to be encrypted and why?
Do you need to be able to turn the encrypted data back into something readable later?
What should the script's output look like?