Backport \OC\Security\Crypto to ownCloud 7

Conflicts:
	lib/repair/repairconfig.php
Only store user credentials when SMB_OC storage is enabled