fixed bug 'TypeError: no implicit conversion of String into Integer' and
extended to configure ENV['ARMOR_HASH_LENGTH']