Update crypto.py

remove unnecessary len