If we create a new instance using crypto.createCipheriv(algorithm, key, iv) it throws an error of invalid key length. Can we set auto padding so that if the key is short than it automatically adds padding to key or do we manually need to append it, the key here can be of dynamic length?
This would be too magical for my taste.
Closing, no one seems to be in favor of this change.
Most helpful comment
This would be too magical for my taste.