added encrypt function and init defaults for ECB mode