How to use the BCryptGen