add encryption for 128 or 256 autodetect key length