Update core_crypto.py