Improve example script for cipher testing
Separate function for checking cipher key and IV