CryptoEngine debugged

all methods work as desired