This question already has an answer here:
It's a fairly fast read but I forgot the name. Guy wakes up in a hospital/military facility by a computer. Realizes he has an API into his own body. Programs himself to get stronger which takes up energy so he gets hungry and eats a lot. Then some stuff about memory/encrypting huge keys in his head. Thanks in advance!