Adding the ability to handle random IVs for security purposes

Opening a PR for initial review/feedback