I wouldn't say to invent, particularly if one has totally what
security is about, what encryption is about, what's PKI, what's
hashing, what's this and what's that.
Make use of existing algorithms.
If you really want to create a whole new algorithm, go Counterpane
and read up.