Created
November 25, 2019 19:14
-
-
Save trevorfoskett/0866f98390e66403b2243ec61d91bcdb to your computer and use it in GitHub Desktop.
Removing the Drive upload functionality from existing encrypt function.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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