Revert "use a simple function - OC.Encryption is already defined - fixes #15707"
Revert "use a simple function - OC.Encryption is already defined - fixes #15707"

This reverts commit c1a60a23498abe6502d207b8c803255e31515577.

cernbox/core,sharidas/core,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,endsguy/server,sharidas/core,michaelletzgus/nextcloud-server,owncloud/core,michaelletzgus/nextcloud-server,owncloud/core,whitekiba/server,pixelipo/server,jbicha/server,nextcloud/server,endsguy/server,owncloud/core,bluelml/core,michaelletzgus/nextcloud-server,phil-davis/core,xx621998xx/server,Ardinis/server,pollopolea/core,IljaN/core,endsguy/server,IljaN/core,sharidas/core,bluelml/core,pollopolea/core,pmattern/server,whitekiba/server,pixelipo/server,bluelml/core,jbicha/server,pmattern/server,endsguy/server,nextcloud/server,pixelipo/server,lrytz/core,sharidas/core,IljaN/core,bluelml/core,pollopolea/core,lrytz/core,IljaN/core,xx621998xx/server,whitekiba/server,pixelipo/server,pmattern/server,jbicha/server,IljaN/core,Ardinis/server,jbicha/server,pollopolea/core,owncloud/core,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,sharidas/core,whitekiba/server,nextcloud/server,cernbox/core,xx621998xx/server,jbicha/server,xx621998xx/server,pmattern/server,pmattern/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,cernbox/core,lrytz/core,whitekiba/server,cernbox/core,Ardinis/server,owncloud/core,cernbox/core,lrytz/core,endsguy/server,pollopolea/core,pixelipo/server,Ardinis/server,xx621998xx/server,lrytz/core,bluelml/core,Ardinis/server