You come up with your own algorithm, and then just run through the file.
Algorithms are usually based on some maths thing.

Eg. RSA is based on modular arithmetic.

- jamie