Use the security api correctly.
Merge pull request #20 from AlgorithmX2/patch-1

Use the security api correctly.