add some comments for cryptography hook