Activity › Forums › Salesforce® Discussions › When to use encryptWithManagedIV() method in apex ? Salesforce® Discussions When to use encryptWithManagedIV() method in apex ? Posted by Kirandeep on October 20, 2020 at 4:47 PM When to use encryptWithManagedIV() method in apex ? Deepak replied 5 years, 7 months ago 2 Members · 1 Reply 1 Reply Deepak Member October 20, 2020 at 5:01 PM You will use the encryptWithManagedIV method if you want Salesforce to generate the initialization vector for you. It is stored as the first 128 bits (16 bytes) of the encrypted Blob. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me