modifies aes key generation from shared prefs