added aad encryption

This commit is contained in:
Abhinav Adduri 2017-06-20 14:33:28 -07:00 committed by Danny Coates
parent 50995238bd
commit 34c367c49f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 52 additions and 10 deletions

View file

@ -20,6 +20,7 @@ function strToIv(str) {
return iv;
}
function notify(str) {
if (!('Notification' in window)) {
return;
@ -32,8 +33,13 @@ function notify(str) {
}
}
function strToUintArr(str) {
return new Uint8Array(str.split(",").map(x => parseInt(x)));
}
module.exports = {
ivToStr,
strToIv,
notify
notify,
strToUintArr
};