Init with encryption