MDL-31836 moodlelib: removed legacy encryptkey support