Fixed deprecation warning from crypto
Merge pull request #122 from jni-/crypto-fix

Fixed deprecation warning from crypto