function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anton | De OndernemerAnton | De Ondernemer 

change encryption mode for Crypto class

so I got this thing with the Crypto class. 
sample code I will be using: 
trigger EncryptEmail on Contact (before insert, before update) {
    Contact[] contacts = new Contact[] {};
    
    for (Contact contact: Trigger.new) {
        Blob key = Blob.valueOf('privatekey');
        Blob iv = Blob.valueOf('customIV');
        Blob data = Blob.valueOf(contact.Email);
        Blob encrypted = Crypto.encrypt('AES128', key, iv, data);
        String encodedEmail = EncodingUtil.base64Encode(encrypted);

        Blob decrypted = Crypto.decrypt('AES128', key, iv, encrypted);
        String decodedEmail = decrypted.toString();
        
        System.debug(encodedEmail);
        System.debug(decodedEmail);
    }

    update contacts;
}

I need to create encrypted emails in order to be able to share them.
another program needs to decrypt it, but I noticed different results.
According to the Apex Docs:
These are all industry standard Advanced Encryption Standard (AES) algorithms with different size keys. They use cipher block chaining (CBC) and PKCS5 padding.

Is it possible to change CBC to CFB?