fix: restore createAutoEncrypter()
functionality
#2710
Merged
createAutoEncrypter()
functionality
#2710