function encrypt(contacts = [], cancellationToken = createCancellationToken(), progressBar = false) {
        const transform = async ({ vCard }, [publicKey], [privateKey]) => {
            const Cards = await prepareCards({
                data: vCard,
                publicKeys: [publicKey],
                privateKeys: [privateKey]
            });
            return { Cards };
        };

        return transformContactsConcurrent({
            cancellationToken,
            progressBar,
            contacts,
            transform,
            progressSpeed: 50
        });
    }
/**
     * Encrypt the custom datas
     * NOTE It's very important to chain the promises for the encryption to not overcharge pmcw
     * @param {Array} contacts
     * @param {Object} cancellationToken
     * @param {Boolean} progressBar
     * @return {Promise}
     */
Encrypt the custom datas
NOTE It's very important to chain the promises for the encryption to not overcharge pmcw
@param {Array} contacts
@param {Object} cancellationToken
@param {Boolean} progressBar
@return {Promise}
Encrypt the custom datas NOTE It ' s very important to chain the promises for the encryption to not overcharge pmcw @param { Array } contacts @param { Object } cancellationToken @param { Boolean } progressBar @return { Promise }
function encrypt(contacts = [], cancellationToken = createCancellationToken(), progressBar = false) {
        const transform = async ({ vCard }, [publicKey], [privateKey]) => {
            const Cards = await prepareCards({
                data: vCard,
                publicKeys: [publicKey],
                privateKeys: [privateKey]
            });
            return { Cards };
        };
        return transformContactsConcurrent({
            cancellationToken,
            progressBar,
            contacts,
            transform,
            progressSpeed: 50
        });
    }
function encrypt ( contacts = [ ] , cancellationToken = createCancellationToken ( ) , progressBar = false ) { const transform = async ( { vCard } , [ publicKey ] , [ privateKey ] ) => { const Cards = await prepareCards ( { data : vCard , publicKeys : [ publicKey ] , privateKeys : [ privateKey ] } ) ; return { Cards } ; } ; return transformContactsConcurrent ( { cancellationToken , progressBar , contacts , transform , progressSpeed : 50 } ) ; }
Encrypt the custom datas
 NOTE It's very important to chain the promises for the encryption to not overcharge pmcw
 @param {Array} contacts
 @param {Object} cancellationToken
 @param {Boolean} progressBar
 @return {Promise}
Encrypt the custom datas NOTE It ' s very important to chain the promises for the encryption to not overcharge pmcw @param { Array } contacts @param { Object } cancellationToken @param { Boolean } progressBar @return { Promise }