Hi @edewit the interface on AeroGear JS has changed since we had to implement the encrypted datamanager, please take a look at:

https://github.com/aerogear/aerogear-js/blob/master/tests/unit/crypto/aerogear.crypto.js