async function load(file, pubKeys, privKey) {
        if (!file) {
            throw new TypeError(I18N.missing);
        }
        try {
            const result = await readFileAsBuffer(file);
            return encrypt(new Uint8Array(result), pubKeys, privKey, file);
        } catch (e) {
            throw new Error(I18N.encrypt);
        }
    }
// read the file locally, and encrypt it. return the encrypted file.
read the file locally, and encrypt it. return the encrypted file.
read the file locally and encrypt it . return the encrypted file .
async function load(file, pubKeys, privKey) {
        if (!file) {
            throw new TypeError(I18N.missing);
        }
        try {
            const result = await readFileAsBuffer(file);
            return encrypt(new Uint8Array(result), pubKeys, privKey, file);
        } catch (e) {
            throw new Error(I18N.encrypt);
        }
    }
async function load ( file , pubKeys , privKey ) { if ( ! file ) { throw new TypeError ( I18N . missing ) ; } try { const result = await readFileAsBuffer ( file ) ; return encrypt ( new Uint8Array ( result ) , pubKeys , privKey , file ) ; } catch ( e ) { throw new Error ( I18N . encrypt ) ; } }
read the file locally, and encrypt it.
read the file locally and encrypt it .