Skip to content

Instantly share code, notes, and snippets.

@trevorfoskett
Created November 25, 2019 19:14
Show Gist options
  • Save trevorfoskett/0866f98390e66403b2243ec61d91bcdb to your computer and use it in GitHub Desktop.
Save trevorfoskett/0866f98390e66403b2243ec61d91bcdb to your computer and use it in GitHub Desktop.
Removing the Drive upload functionality from existing encrypt function.
/*
* Encryption function.
*
* @param {string} fileName Name of the file to encrypt.
*/
async function encrypt(fileName){
const encryptParams = new Virtru.EncryptParamsBuilder()
.withFileSource(`./encrypt-in/${fileName}`)
.withDisplayfileName(fileName)
.build();
ct = await client.encrypt(encryptParams);
var ctString = await ct.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment