Added Security alg.

It's really useless because the code is public and anybody can see how
to generate the security code.
But I implemented it because I can.