WL-3454 Automatically select the best key length.

Rather than hard coding the key length we do 256 if we can otherwise we fallback to 128 bits.
WL-3454 Actually get the code to use the new method.
Merge pull request #6 from ox-it/WL-3454

WL-3454 Automatically select the best key length.