Add sudo to encrpyted check