From 6314ff25ceebe6d9cdcd0a8f998edefa830e4784 Mon Sep 17 00:00:00 2001 From: CMEONE Date: Sun, 13 Jun 2021 19:50:28 +0000 Subject: [PATCH] Minify --- node/tenvoy.min.js | 2 +- node/tenvoy.min.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/tenvoy.min.js b/node/tenvoy.min.js index 2f4a66df..624de552 100644 --- a/node/tenvoy.min.js +++ b/node/tenvoy.min.js @@ -1,2 +1,2 @@ -const openpgp=require("../openpgpjs/dist/openpgp.js"),nacl=require("../tweetnacljs/nacl.js"),sha256=require("../fast-sha256-js");var TogaTech={};function tEnvoy(e=openpgp,t=nacl,r=sha256){let h=e,l=t,i=r;this.dictionary="abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby bachelor bacon badge bag balance balcony ball bamboo banana banner bar barely bargain barrel base basic basket battle beach bean beauty because become beef before begin behave behind believe below belt bench benefit best betray better between beyond bicycle bid bike bind biology bird birth bitter black blade blame blanket blast bleak bless blind blood blossom blouse blue blur blush board boat body boil bomb bone bonus book boost border boring borrow boss bottom bounce box boy bracket brain brand brass brave bread breeze brick bridge brief bright bring brisk broccoli broken bronze broom brother brown brush bubble buddy budget buffalo build bulb bulk bullet bundle bunker burden burger burst bus business busy butter buyer buzz cabbage cabin cable cactus cage cake call calm camera camp can canal cancel candy cannon canoe canvas canyon capable capital captain car carbon card cargo carpet carry cart case cash casino castle casual cat catalog catch category cattle caught cause caution cave ceiling celery cement census century cereal certain chair chalk champion change chaos chapter charge chase chat cheap check cheese chef cherry chest chicken chief child chimney choice choose chronic chuckle chunk churn cigar cinnamon circle citizen city civil claim clap clarify claw clay clean clerk clever click client cliff climb clinic clip clock clog close cloth cloud clown club clump cluster clutch coach coast coconut code coffee coil coin collect color column combine come comfort comic common company concert conduct confirm congress connect consider control convince cook cool copper copy coral core corn correct cost cotton couch country couple course cousin cover coyote crack cradle craft cram crane crash crater crawl crazy cream credit creek crew cricket crime crisp critic crop cross crouch crowd crucial cruel cruise crumble crunch crush cry crystal cube culture cup cupboard curious current curtain curve cushion custom cute cycle dad damage damp dance danger daring dash daughter dawn day deal debate debris decade december decide decline decorate decrease deer defense define defy degree delay deliver demand demise denial dentist deny depart depend deposit depth deputy derive describe desert design desk despair destroy detail detect develop device devote diagram dial diamond diary dice diesel diet differ digital dignity dilemma dinner dinosaur direct dirt disagree discover disease dish dismiss disorder display distance divert divide divorce dizzy doctor document dog doll dolphin domain donate donkey donor door dose double dove draft dragon drama drastic draw dream dress drift drill drink drip drive drop drum dry duck dumb dune during dust dutch duty dwarf dynamic eager eagle early earn earth easily east easy echo ecology economy edge edit educate effort egg eight either elbow elder electric elegant element elephant elevator elite else embark embody embrace emerge emotion employ empower empty enable enact end endless endorse enemy energy enforce engage engine enhance enjoy enlist enough enrich enroll ensure enter entire entry envelope episode equal equip era erase erode erosion error erupt escape essay essence estate eternal ethics evidence evil evoke evolve exact example excess exchange excite exclude excuse execute exercise exhaust exhibit exile exist exit exotic expand expect expire explain expose express extend extra eye eyebrow fabric face faculty fade faint faith fall false fame family famous fan fancy fantasy farm fashion fat fatal father fatigue fault favorite feature february federal fee feed feel female fence festival fetch fever few fiber fiction field figure file film filter final find fine finger finish fire firm first fiscal fish fit fitness fix flag flame flash flat flavor flee flight flip float flock floor flower fluid flush fly foam focus fog foil fold follow food foot force forest forget fork fortune forum forward fossil foster found fox fragile frame frequent fresh friend fringe frog front frost frown frozen fruit fuel fun funny furnace fury future gadget gain galaxy gallery game gap garage garbage garden garlic garment gas gasp gate gather gauge gaze general genius genre gentle genuine gesture ghost giant gift giggle ginger giraffe girl give glad glance glare glass glide glimpse globe gloom glory glove glow glue goat goddess gold good goose gorilla gospel gossip govern gown grab grace grain grant grape grass gravity great green grid grief grit grocery group grow grunt guard guess guide guilt guitar gun gym habit hair half hammer hamster hand happy harbor hard harsh harvest hat have hawk hazard head health heart heavy hedgehog height hello helmet help hen hero hidden high hill hint hip hire history hobby hockey hold hole holiday hollow home honey hood hope horn horror horse hospital host hotel hour hover hub huge human humble humor hundred hungry hunt hurdle hurry hurt husband hybrid ice icon idea identify idle ignore ill illegal illness image imitate immense immune impact impose improve impulse inch include income increase index indicate indoor industry infant inflict inform inhale inherit initial inject injury inmate inner innocent input inquiry insane insect inside inspire install intact interest into invest invite involve iron island isolate issue item ivory jacket jaguar jar jazz jealous jeans jelly jewel job join joke journey joy judge juice jump jungle junior junk just kangaroo keen keep ketchup key kick kid kidney kind kingdom kiss kit kitchen kite kitten kiwi knee knife knock know lab label labor ladder lady lake lamp language laptop large later latin laugh laundry lava law lawn lawsuit layer lazy leader leaf learn leave lecture left leg legal legend leisure lemon lend length lens leopard lesson letter level liar liberty library license life lift light like limb limit link lion liquid list little live lizard load loan lobster local lock logic lonely long loop lottery loud lounge love loyal lucky luggage lumber lunar lunch luxury lyrics machine mad magic magnet maid mail main major make mammal man manage mandate mango mansion manual maple marble march margin marine market marriage mask mass master match material math matrix matter maximum maze meadow mean measure meat mechanic medal media melody melt member memory mention menu mercy merge merit merry mesh message metal method middle midnight milk million mimic mind minimum minor minute miracle mirror misery miss mistake mix mixed mixture mobile model modify mom moment monitor monkey monster month moon moral more morning mosquito mother motion motor mountain mouse move movie much muffin mule multiply muscle museum mushroom music must mutual myself mystery myth naive name napkin narrow nasty nation nature near neck need negative neglect neither nephew nerve nest net network neutral never news next nice night noble noise nominee noodle normal north nose notable note nothing notice novel now nuclear number nurse nut oak obey object oblige obscure observe obtain obvious occur ocean october odor off offer office often oil okay old olive olympic omit once one onion online only open opera opinion oppose option orange orbit orchard order ordinary organ orient original orphan ostrich other outdoor outer output outside oval oven over own owner oxygen oyster ozone pact paddle page pair palace palm panda panel panic panther paper parade parent park parrot party pass patch path patient patrol pattern pause pave payment peace peanut pear peasant pelican pen penalty pencil people pepper perfect permit person pet phone photo phrase physical piano picnic picture piece pig pigeon pill pilot pink pioneer pipe pistol pitch pizza place planet plastic plate play please pledge pluck plug plunge poem poet point polar pole police pond pony pool popular portion position possible post potato pottery poverty powder power practice praise predict prefer prepare present pretty prevent price pride primary print priority prison private prize problem process produce profit program project promote proof property prosper protect proud provide public pudding pull pulp pulse pumpkin punch pupil puppy purchase purity purpose purse push put puzzle pyramid quality quantum quarter question quick quit quiz quote rabbit raccoon race rack radar radio rail rain raise rally ramp ranch random range rapid rare rate rather raven raw razor ready real reason rebel rebuild recall receive recipe record recycle reduce reflect reform refuse region regret regular reject relax release relief rely remain remember remind remove render renew rent reopen repair repeat replace report require rescue resemble resist resource response result retire retreat return reunion reveal review reward rhythm rib ribbon rice rich ride ridge rifle right rigid ring riot ripple risk ritual rival river road roast robot robust rocket romance roof rookie room rose rotate rough round route royal rubber rude rug rule run runway rural sad saddle sadness safe sail salad salmon salon salt salute same sample sand satisfy satoshi sauce sausage save say scale scan scare scatter scene scheme school science scissors scorpion scout scrap screen script scrub sea search season seat second secret section security seed seek segment select sell seminar senior sense sentence series service session settle setup seven shadow shaft shallow share shed shell sheriff shield shift shine ship shiver shock shoe shoot shop short shoulder shove shrimp shrug shuffle shy sibling sick side siege sight sign silent silk silly silver similar simple since sing siren sister situate six size skate sketch ski skill skin skirt skull slab slam sleep slender slice slide slight slim slogan slot slow slush small smart smile smoke smooth snack snake snap sniff snow soap soccer social sock soda soft solar soldier solid solution solve someone song soon sorry sort soul sound soup source south space spare spatial spawn speak special speed spell spend sphere spice spider spike spin spirit split spoil sponsor spoon sport spot spray spread spring spy square squeeze squirrel stable stadium staff stage stairs stamp stand start state stay steak steel stem step stereo stick still sting stock stomach stone stool story stove strategy street strike strong struggle student stuff stumble style subject submit subway success such sudden suffer sugar suggest suit summer sun sunny sunset super supply supreme sure surface surge surprise surround survey suspect sustain swallow swamp swap swarm swear sweet swift swim swing switch sword symbol symptom syrup system table tackle tag tail talent talk tank tape target task taste tattoo taxi teach team tell ten tenant tennis tent term test text thank that theme then theory there they thing this thought three thrive throw thumb thunder ticket tide tiger tilt timber time tiny tip tired tissue title toast tobacco today toddler toe together toilet token tomato tomorrow tone tongue tonight tool tooth top topic topple torch tornado tortoise toss total tourist toward tower town toy track trade traffic tragic train transfer trap trash travel tray treat tree trend trial tribe trick trigger trim trip trophy trouble truck true truly trumpet trust truth try tube tuition tumble tuna tunnel turkey turn turtle twelve twenty twice twin twist two type typical ugly umbrella unable unaware uncle uncover under undo unfair unfold unhappy uniform unique unit universe unknown unlock until unusual unveil update upgrade uphold upon upper upset urban urge usage use used useful useless usual utility vacant vacuum vague valid valley valve van vanish vapor various vast vault vehicle velvet vendor venture venue verb verify version very vessel veteran viable vibrant vicious victory video view village vintage violin virtual virus visa visit visual vital vivid vocal voice void volcano volume vote voyage wage wagon wait walk wall walnut want warfare warm warrior wash wasp waste water wave way wealth weapon wear weasel weather web wedding weekend weird welcome west wet whale what wheat wheel when where whip whisper wide width wife wild will win window wine wing wink winner winter wire wisdom wise wish witness wolf woman wonder wood wool word work world worry worth wrap wreck wrestle wrist write wrong yard year yellow you young youth zebra zero zone zoo",this.wordsList=this.dictionary.split(" "),Object.defineProperty(this,"version",{get:()=>"v7.0.0"}),this.core={},Object.defineProperty(this.core,"openpgp",{get:()=>h}),Object.defineProperty(this.core,"nacl",{get:()=>l}),Object.defineProperty(this.core,"sha256",{get:()=>i}),this.util={},this.util.utf8encode=e=>{if(null==e)throw"tEnvoy Fatal Error: argument string of method util.utf8encode is required and does not have a default value.";return h.util.encode_utf8(e)},this.util.utf8decode=e=>{if(null==e)throw"tEnvoy Fatal Error: argument bytes of method util.utf8decode is required and does not have a default value.";return e instanceof Uint8Array||(e=this.util.mixedToUint8Array(e,!1)),h.util.decode_utf8(e)},this.util.stringToBytes=e=>{if(null==e)throw"tEnvoy Fatal Error: argument string of method util.stringToBytes is required and does not have a default value.";return h.util.str_to_Uint8Array(e)},this.util.bytesToString=e=>{if(null==e)throw"tEnvoy Fatal Error: argument bytes of method util.bytesToString is required and does not have a default value.";return e instanceof Uint8Array||(e=this.util.mixedToUint8Array(e,!1)),h.util.Uint8Array_to_str(e)},this.util.stringToHex=r=>{if(null==r)throw"tEnvoy Fatal Error: argument string of method util.stringToHex is required and does not have a default value.";let a="";for(let t=0;t{if(null==t)throw"tEnvoy Fatal Error: argument hex of method util.hexToString is required and does not have a default value.";let r="";for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument bytes of method util.bytesToHex is required and does not have a default value.";t instanceof Uint8Array||(t=this.util.mixedToUint8Array(t,!1));let r="";for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument hex of method util.hexToBytes is required and does not have a default value.";let r=new Uint8Array(t.length/2);for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument array of method util.arrayDeepCopy is required and does not have a default value.";let r;if(t instanceof Uint8Array)r=new Uint8Array(t.length);else{if(!(t instanceof Array))throw"tEnvoy Fatal Error: argument array of method util.arrayDeepCopy is invalid, array must be of type Uint8Array or Array.";r=new Array(t.length)}for(let e=0;e{if(null==r)return r;var i=(r,e)=>{if(r.length==e||null==e)return r;if(r.length>e){let t=new Uint8Array(e);for(let e=0;e{for(let e=0;e{if(null==n)return null;if(e){let t=!1,r=0;for(let e=0;ethis.util.mixedToUint8Array(e,!0,t),this.util.unpack=e=>this.util.uint8ArrayToMixed(e,!0),this.util.objectEquals=(e,t)=>{return(()=>{var e,t,a,i;let o=(e,t)=>{if(isNaN(e)&&isNaN(t)&&"number"==typeof e&&"number"==typeof t)return!0;if(e===t)return!0;if("function"==typeof e&&"function"==typeof t||e instanceof Date&&t instanceof Date||e instanceof RegExp&&t instanceof RegExp||e instanceof String&&t instanceof String||e instanceof Number&&t instanceof Number)return e.toString()===t.toString();if(!(e instanceof Object&&t instanceof Object))return!1;if(e.isPrototypeOf(t)||t.isPrototypeOf(e))return!1;if(e.constructor!==t.constructor)return!1;if(e.prototype!==t.prototype)return!1;if(-1{for(e=e.replace("Version: OpenPGP.js v4.10.10","Version: tEnvoy "+this.version).replace("Comment: https://openpgpjs.org","Comment: https://togatech.org/ (TogaTech tEnvoy)");"-"!=e[0];)e=e.substring(1);return e},this.hash=(e,t="sha256")=>{if("function"==typeof this.hash[t=null==t?"sha256":t])return this.hash[t](e);throw"tEnvoy Fatal Error: argument mixed of method hash is invalid."},this.hash.sha256=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha256 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.sha256(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha1=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha1 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.sha1(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha224=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha224 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.sha224(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha384=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha384 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.sha384(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha512=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha512 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.sha512(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.md5=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.md5 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.md5(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.ripemd160=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.ripemd160 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await h.crypto.hash.ripemd(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.random={},this.random.bytes=(r=1)=>new Promise(async(e,t)=>{null==r&&(r=1),r=isNaN(parseInt(r))?0:parseInt(r),e(await h.crypto.random.getRandomBytes(r).catch(e=>{t(e)}))}),this.random.number=(r=0,a=1)=>new Promise(async(e,t)=>{null==r&&(r=0),r=isNaN(parseFloat(r))?0:parseFloat(r),null==a&&(a=0),a=isNaN(parseFloat(a))?0:parseFloat(a),e((await this.random.bytes(1).catch(e=>{t(e)}))[0]/255*(a-r)+r)}),this.random.string=(i=10)=>new Promise(async(e,t)=>{null==i&&(i=10),i=isNaN(parseInt(i))?10:parseInt(i);let r="";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let e=0;e{t(e)})));e(r)}),this.random.words=(a=12)=>new Promise(async(e,t)=>{null==a&&(a=12),a=isNaN(parseInt(a))?12:parseInt(a);let r="";for(let e=0;e{t(e)}))],e+1!=a&&(r+=" ");e(r)}),this.keyFactory={},this.keyFactory.pbkdf2=(e,t,r=15e4,a=32)=>{if(null==e)throw"tEnvoy Fatal Error: argument password of method keyFactory.pbkdf2 is required and does not have a default value.";if(null==t)throw"tEnvoy Fatal Error: argument salt of method keyFactory.pbkdf2 is required and does not have a default value.";return null==r&&(r=15e4),r=isNaN(parseInt(r))?15e4:parseInt(r),null==a&&(a=32),a=isNaN(parseInt(a))?32:parseInt(a),e=this.util.mixedToUint8Array(e,!1),t=this.util.mixedToUint8Array(t,!1),i.pbkdf2(e,t,r,a)},this.keyFactory.genSeedFromCredentials=(e,t,r=15e4,a=32)=>(null==e&&reject("tEnvoy Fatal Error: argument username of method keyFactory.genSeedFromCredentials is required and does not have a default value."),null==t&&reject("tEnvoy Fatal Error: argument password of method keyFactory.genSeedFromCredentials is required and does not have a default value."),null==a&&(a=32),a=isNaN(parseInt(a))?32:parseInt(a),this.keyFactory.pbkdf2(t,e,r,a)),this.keyFactory.genPGPKeys=d=>new Promise(async(e,t)=>{null==(d=null==d?{}:d).passwordProtected&&(d.passwordProtected=[]);let r,a,i,o;if(null!=d.keyArmored){let e=new tEnvoyPGPKey(d.keyArmored,null,null,[],this);var n=e.getType();"private"==n?(i=await e.getPrivateArmored(d.password),o=await e.getPublicArmored(d.password)):"public"==n?o=await e.getPublicArmored(d.password):t("tEnvoy Fatal Error: argument key of object args of method keyFactory.genPGPKeys must either be public or private. For aes keys, use keyFactory.genPGPSymmetricKey instead.")}else{null==d.options&&(d.options={curve:"curve25519"}),null==d.users&&null==d.options.userIds&&(d.users=[{}]),null==d.users&&null!=d.options.userIds&&(d.users=d.options.userIds),null!=d.users&&null!=d.options.userIds&&(d.options.userIds=d.options.userIds.filter(t=>null==d.users.find(e=>e.name==t.name&&e.email==t.email&&e.comment==t.comment)),d.users=d.users.concat(d.options.userIds));for(let e=0;e{t(e)});i=this.util.fixArmor(n.privateKeyArmored),o=this.util.fixArmor(n.publicKeyArmored)}var c;a=null==d.password?(null!=i&&(r=new tEnvoyPGPKey(i,"private",d.password,d.passwordProtected,this)),new tEnvoyPGPKey(o,"public",d.password,d.passwordProtected,this)):(null!=i&&(c=await h.encrypt({message:await h.message.fromText(i),passwords:[d.password]}).catch(e=>{t(e)}),r=new tEnvoyPGPKey(this.util.fixArmor(c.data),"private",d.password,d.passwordProtected,this)),c=await h.encrypt({message:await h.message.fromText(o),passwords:[d.password]}).catch(e=>{t(e)}),new tEnvoyPGPKey(this.util.fixArmor(c.data),"public",d.password,d.passwordProtected,this)),e({privateKey:r,publicKey:a})}),this.keyFactory.genPGPSymmetricKey=a=>new Promise(async(e,t)=>{var r;null==(a=null==a?{}:a).passwordProtected&&(a.passwordProtected=[]),null==a.key&&t("tEnvoy Fatal Error: argument key of object args of method keyFactory.genPGPSymmetricKey is required and does not have a default value."),null==a.password?e(new tEnvoyPGPKey(a.key,"aes",null,a.passwordProtected,this)):(r=await h.encrypt({message:await h.message.fromText(a.key),passwords:[a.password]}).catch(e=>{t(e)}),e(new tEnvoyPGPKey(this.util.fixArmor(r.data),"aes",a.password,a.passwordProtected,this)))}),this.keyFactory.genNaClKeys=e=>{null==(e=null==e?{}:e).passwordProtected&&(e.passwordProtected=[]);let t,r,a,i,o;if(null!=e.key){if(null==e.keyType)throw"tEnvoy Fatal Error: argument keyType of object args of method keyFactory.genNaClKeys is required when using args.key and does not have a default value.";if("private"==e.keyType)t=new tEnvoyNaClKey(e.key,"private",e.password,e.passwordProtected,this),r=t.toPublic();else{if("public"!=e.keyType)throw"tEnvoy Fatal Error: argument keyType of object args of method keyFactory.genNaClKeys must either be public or private. For secret (or shared) keys, use keyFactory.genNaClSymmetricKey instead.";r=new tEnvoyNaClKey(e.key,"public",e.password,e.passwordProtected,this)}}else o=null==e.seed?l.box.keyPair():l.box.keyPair.fromSecretKey(e.seed),t=new tEnvoyNaClKey(o.secretKey,"private",e.password,e.passwordProtected,this),r=new tEnvoyNaClKey(o.publicKey,"public",e.password,e.passwordProtected,this);return null!=t&&(e=t.genSigningKeys(e.password),a=e.privateKey,i=e.publicKey),{privateKey:t,publicKey:r,privateSigningKey:a,publicSigningKey:i}},this.keyFactory.genNaClSymmetricKey=e=>{if(null==(e=null==e?{}:e).passwordProtected&&(e.passwordProtected=[]),null==e.key)throw"tEnvoy Fatal Error: argument key of object args of method keyFactory.genNaClSymmetricKey is required and does not have a default value.";return new tEnvoyNaClKey(e.key,"secret",e.password,e.passwordProtected,this)}}function tEnvoyPGPKey(i,e="aes",r=null,a=[],t=TogaTech.tEnvoy){let n,s,o,l,u,c=t,d=c.core.openpgp;if(this.toString=()=>`[tEnvoyPGPKey ${l}]`,this.getType=()=>l,this.getPasswordProtected=()=>c.util.arrayDeepCopy(o),this.setPasswordProtected=(r,e=null)=>{e=u("setPasswordProtected",e);if(!e.proceed)throw e.error;{o=[];let t=[];"private"==l?t=["getId","getPublic","encrypt","decrypt","sign","verify"]:"public"==l?t=["getId","encrypt","verify"]:"aes"==l&&(t=["encrypt","decrypt"]),null==r&&(r=[]);for(let e=0;enew Promise(async(t,e)=>{if("private"==l||"public"==l){var r=u("getId",a);if(r.proceed){let e=await this.getPublic(s);t(e.getKeyId().toHex())}else e(r.error)}else e("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component.")}),this.getKey=(a=null)=>new Promise(async(e,t)=>{var r;"aes"==l?null==s?e(n):(r=u("getKey",a)).proceed?e((await d.decrypt({message:await d.message.readArmored(n),passwords:[s]}).catch(e=>{t(e)})).data):t(r.error):t("tEnvoyPGPKey Fatal Error: Key does not have a symmetric component.")}),this.getPrivate=(a=null)=>new Promise(async(e,t)=>{var r=await this.getPrivateArmored(a).catch(e=>{t(e)});e((await d.key.readArmored(r).catch(e=>{t(e)})).keys[0])}),this.setPrivate=(r,a=null)=>new Promise(async(e,t)=>{await this.setPrivateArmored(r.armor(),a).catch(e=>{t(e)}),e()}),this.getPrivateArmored=(a=null)=>new Promise(async(e,t)=>{var r;"private"==l?null==s?e(n):(r=u("getPrivate",a)).proceed?e((await d.decrypt({message:await d.message.readArmored(i),passwords:[s]}).catch(e=>{t(e)})).data):t(r.error):t("tEnvoyPGPKey Fatal Error: Key does not have a private component.")}),this.setPrivateArmored=(i,o=null)=>new Promise(async(e,t)=>{var r,a;"private"==l?(null==i&&t("tEnvoyPGPKey Fatal Error: argument keyArmored of method setPrivateArmored is required and does not have a default value."),i=c.util.fixArmor(i),null==s?(n=i,e()):(r=u("setPrivate",o)).proceed?(a=await d.encrypt({message:await d.message.fromText(i),passwords:[s]}).catch(e=>{t(e)}),n=c.util.fixArmor(a.data),e()):t(r.error)):t("tEnvoyPGPKey Fatal Error: Key does not have a private component.")}),this.getPublic=(a=null)=>new Promise(async(t,r)=>{var e=u("getPublic",a);if(e.proceed)if("private"==l){let e=await this.getPrivate(s);t(e.toPublic())}else if("public"==l){let e;e=null==s?n:(await d.decrypt({message:await d.message.readArmored(n),passwords:[s]}).catch(e=>{r(e)})).data,t((await d.key.readArmored(e).catch(e=>{r(e)})).keys[0])}else r("tEnvoyPGPKey Fatal Error: Key does not have a public component.");else r(e.error)}),this.setPublic=(i,o=null)=>new Promise(async(e,t)=>{var r,a=u("setPublic",o);a.proceed?"public"==l?(n=null==s?i.armor():(r=await d.encrypt({message:await d.message.fromText(i.armor()),passwords:[s]}).catch(e=>{t(e)}),c.util.fixArmor(r.data)),e()):"private"==l?t("tEnvoyPGPKey Fatal Error: Key has a public component that depends on the private component."):t("tEnvoyPGPKey Fatal Error: Key does not have a public component."):t(a.error)}),this.getPublicArmored=(a=null)=>new Promise(async(e,t)=>{let r=await this.getPublic(a).catch(e=>{t(e)});e(c.util.fixArmor(r.armor()))}),this.setPublicArmored=(a,i=null)=>new Promise(async(e,t)=>{var r;null==a?t("tEnvoyPGPKey Fatal Error: argument keyArmored of method setPublicArmored is required and does not have a default value."):(a=c.util.fixArmor(a).catch(e=>{t(e)}),r=await d.key.readArmored(a).catch(e=>{t(e)}),await this.setPublic(r.keys[0],i),e())}),this.encrypt=(i,e=null)=>new Promise(async(r,a)=>{if(u("encrypt",e).proceed){let e,t;t="aes"==l?(e=await this.getKey(s).catch(e=>{a(e)}),await d.encrypt({message:await d.message.fromText(i),passwords:[e]}).catch(e=>{a(e)})):(e=await this.getPublic(s).catch(e=>{a(e)}),await d.encrypt({message:d.message.fromText(i),publicKeys:e}).catch(e=>{a(e)})),r(c.util.fixArmor(t.data))}}),this.decrypt=(i,t=null)=>new Promise(async(r,a)=>{var e=u("decrypt",t);if(e.proceed){i=c.util.fixArmor(i);let e,t;t="aes"==l?(e=await this.getKey(s).catch(e=>{a(e)}),await d.decrypt({message:await d.message.readArmored(i),passwords:[e]}).catch(e=>{a(e)})):(e=await this.getPrivate(s).catch(e=>{a(e)}),await d.decrypt({message:await d.message.readArmored(i),privateKeys:e}).catch(e=>{a(e)})),r(t.data)}else a(e.error)}),this.sign=(i,o=null)=>new Promise(async(e,t)=>{var r,a=u("sign",o);a.proceed?"aes"==l?t("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component."):(r=await this.getPrivate(s),r=await d.sign({message:await d.cleartext.fromText(i),privateKeys:r}),e(c.util.fixArmor(r.data))):t(a.error)}),this.verify=(i,o=null)=>new Promise(async(t,e)=>{var r,a=u("verify",o);if(a.proceed)if(i=c.util.fixArmor(i),"aes"==l)e("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component.");else{r=await this.getPublic(s);let e=await d.verify({message:await d.cleartext.readArmored(i),publicKeys:r});e.signatures[0]&&e.signatures[0].valid?t({verified:!0,keyid:e.signatures[0].keyid.toHex(),signatures:e.signatures,content:i.split("\n")[3]}):t({verified:!1})}else e(a.error)}),this.toPublic=(r=null)=>new Promise(async(e,t)=>{e(new tEnvoyPGPKey(await this.getPublicArmored(r),"public",s,o,c))}),0==i.indexOf("-----BEGIN PGP PRIVATE KEY BLOCK-----")?(l="private",i=c.util.fixArmor(i)):0==i.indexOf("-----BEGIN PGP PUBLIC KEY BLOCK-----")?(l="public",i=c.util.fixArmor(i)):0==i.indexOf("-----BEGIN PGP MESSAGE-----")?(l=e||"aes",i=c.util.fixArmor(i)):l="aes",!["public","private","aes"].includes(l))throw"tEnvoyPGPKey Fatal Error: argument type of method constructor is invalid.";{s=r,n=i,o=[];let t=[];"private"==l?t=["getId","getPublic","encrypt","decrypt","sign","verify"]:"public"==l?t=["getId","encrypt","verify"]:"aes"==l&&(t=["encrypt","decrypt"]),null==a&&(a=[]);for(let e=0;e{if(null==s)return{proceed:!0};{let e;return"private"==l?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==l?e=["getPublic","setPublic","setPasswordProtected"]:"aes"==l&&(e=["getKey"]),e.includes(t)||o.includes(t)?null==r?{proceed:!1,error:"tEnvoyPGPKey Fatal Error: Key is password-protected for method "+t+", and no password was specified."}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,s)?{proceed:!0}:{proceed:!1,error:"tEnvoyPGPKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}},"aes"!=l&&this.getPublic(s)}}function tEnvoyNaClKey(e,r="secret",a=null,i=[],t=TogaTech.tEnvoy){let o,n,s,l,u,c,d=t,h=d.core.nacl;if(this.toString=()=>`[tEnvoyNaClKey ${u}]`,this.getType=()=>u,this.getPasswordProtected=()=>d.util.arrayDeepCopy(l),this.setPasswordProtected=(r,e=null)=>{e=c("setPasswordProtected",e);if(!e.proceed)throw e.error;{l=[];let t=[];"private"==u||"shared"==u||"secret"==u?t=["getPublic","encrypt","decrypt","encryptEphemeral","decryptEphemeral","genSigningKey","genSharedKey","sign","verify"]:"public"==u&&(t=["encrypt","genSharedKey","verify"]),null==r&&(r=[]);for(let e=0;e{var t=c("getPrivate",e);if(t.proceed){if("private"!=u&&"secret"!=u&&"shared"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a private, secret, or shared component.";if(null==s)return o instanceof Array||o instanceof Uint8Array?d.util.arrayDeepCopy(o):o;e=new tEnvoyNaClKey(s,"secret",null,[],d).decrypt(o);if(d.util.bytesToHex(e.nonce)==d.util.bytesToHex(n))return e.message;throw"tEnvoyNaClKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}throw t.error},this.setPrivate=(e,t=null)=>{t=c("setPrivate",t);if(!t.proceed)throw t.error;if(null==e)throw"tEnvoyNaClKey Fatal Error: argument privateKey of method setPrivate is required and does not have a default value.";if(32!=(e=d.util.mixedToUint8Array(e,!1)).length)throw"tEnvoyNaClKey Fatal Error: argument privateKey of method setPrivate is invalid, length should be 32 (was "+e.length+").";if("private"!=u&&"secret"!=u&&"shared"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a private, secret, or shared component.";o=null==s?e:(n=h.randomBytes(12),new tEnvoyNaClKey(s,"secret",null,[],d).encrypt(e,n))},this.getPublic=(e=null)=>{var t=c("getPublic",e);if(t.proceed){if("private"==u)return h.box.keyPair.fromSecretKey(this.getPrivate(s)).publicKey;if("public"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a public component.";if(null==s)return d.util.arrayDeepCopy(o);e=new tEnvoyNaClKey(s,"secret",null,[],d).decrypt(o);if(d.util.bytesToHex(e.nonce)==d.util.bytesToHex(n))return e.message;throw"tEnvoyNaClKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}throw t.error},this.setPublic=(e,t=null)=>{t=c("setPublic",t);if(!t.proceed)throw t.error;if(null==e)throw"tEnvoyNaClKey Fatal Error: argument publicKey of method setPublic is required and does not have a default value.";if(32!=(e=d.util.mixedToUint8Array(e,!1)).length)throw"tEnvoyNaClKey Fatal Error: argument publicKey of method setPublic is invalid, length should be 32 (was "+e.length+").";if("private"==u)throw"tEnvoyNaClKey Fatal Error: Key has a public component that depends on the private component.";if("public"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a public component.";o=null==s?e:(n=h.randomBytes(12),new tEnvoyNaClKey(s,"secret",null,[],d).encrypt(e,n))},this.encrypt=(e,t,r=null)=>{var a=c("encrypt",r);if(a.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument message of method encrypt is required and does not have a default value.";if(null==t)throw"tEnvoyNaClKey Fatal Error: argument nonce of method encrypt is required and does not have a default value.";var i=d.util.pack(e).length,r=h.randomBytes(1)[0]%16,i=32+32*parseInt(i/32);i+=r,e=d.util.pack(e,i);i=d.util.pack(t);if("shared"==u){if(i.length>h.box.nonceLength)throw"tEnvoyNaClKey Fatal Error: Nonce is too long, ensure that nonce length is under "+h.box.nonceLength+" (was "+i.length+").";t=d.util.pack(t,h.box.nonceLength)}else if("secret"==u){if(i.length>h.secretbox.nonceLength)throw"tEnvoyNaClKey Fatal Error: Nonce is too long, ensure that nonce length is under "+h.secretbox.nonceLength+" (was "+i.length+").";t=d.util.pack(t,h.secretbox.nonceLength)}if("shared"==u)return d.util.bytesToHex(t)+"::"+d.util.bytesToHex(h.box.after(e,t,this.getPrivate(s)));if("secret"==u)return d.util.bytesToHex(t)+"::"+d.util.bytesToHex(h.secretbox(e,t,d.util.pack(this.getPrivate(s),32)));throw"tEnvoyNaClKey Fatal Error: Key cannot be used for encryption, only secret or shared keys can be used to encrypt."}throw a.error},this.decrypt=(e,t=null)=>{var r=c("decrypt",t);if(r.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument encrypted of method decrypt is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClKey Fatal Error: Invalid encrypted message.";var a=d.util.mixedToUint8Array(d.util.hexToBytes(e.split("::")[0]),!1),t=d.util.hexToBytes(e.split("::")[1]);if("shared"==u)return{message:d.util.unpack(h.box.open.after(t,a,this.getPrivate(s))),nonce:d.util.unpack(d.util.hexToBytes(e.split("::")[0]))};if("secret"==u)return{message:d.util.unpack(h.secretbox.open(t,a,d.util.pack(this.getPrivate(s),32))),nonce:d.util.unpack(d.util.hexToBytes(e.split("::")[0]))};throw"tEnvoyNaClKey Fatal Error: Key cannot be used for decryption, only secret or shared keys can be used to decrypt."}throw r.error},this.encryptEphemeral=(r,a,e=null)=>{e=c("encryptEphemeral",e);if(!e.proceed)throw e.error;{let t=d.keyFactory.genNaClKeys({password:s,passwordProtected:l});if("public"==u){let e=this.genSharedKey(t.privateKey,s,s);return e.encrypt(r,a,s)+"::"+d.util.bytesToHex(t.publicKey.getPublic(s))}if("private"!=u)throw"tEnvoyNaClKey Fatal Error: Key cannot be used for ephemeral encryption, only public or private keys can be used to encrypt ephemerally.";{let e=this.toPublic(s).genSharedKey(t.privateKey,s,s);return e.encrypt(r,a,s)+"::"+d.util.bytesToHex(t.publicKey.getPublic(s))}}},this.decryptEphemeral=(t,r=null)=>{var e=c("decryptEphemeral",r);if(e.proceed){if(null==t)throw"tEnvoyNaClKey Fatal Error: argument encryptedEphemeral of method decryptEphemeral is required and does not have a default value.";if(3!=t.split("::").length)throw"tEnvoyNaClKey Fatal Error: Invalid ephemeral encrypted message.";r=t.split("::").slice(0,2).join("::"),t=new tEnvoyNaClKey(d.util.hexToBytes(t.split("::")[2]),"public",s,l,d);if("private"!=u)throw"tEnvoyNaClKey Fatal Error: Key cannot be used for ephemeral decryption, only private keys can be used to decrypt ephemerally.";{let e=this.genSharedKey(t,s,s);return e.decrypt(r)}}throw e.error},this.genSigningKeys=(e=null)=>{var t=c("genSigningKey",e);if(t.proceed){if("secret"==u)throw"tEnvoyNaClKey Fatal Error: Secret key cannot be used to generate signing keys.";e=h.sign.keyPair.fromSeed(this.getPrivate(s));return{privateKey:new tEnvoyNaClSigningKey(e.secretKey,"private",s,l,d),publicKey:new tEnvoyNaClSigningKey(e.publicKey,"public",s,l,d)}}throw t.error},this.genSharedKey=(e,t=null,r=null)=>{r=c("genSharedKey",r);if(r.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument otherKey of method genSharedKey is required and does not have a default value.";if(e instanceof tEnvoyNaClKey){if("public"==u&&"private"==e.getType())return new tEnvoyNaClKey(h.box.before(this.getPublic(s),e.getPrivate(t)),"shared",s,l,d);if("private"!=u||"public"!=e.getType())throw"tEnvoyNaClKey Fatal Error: Incompatible key types, one key should be public, and the other should be private.";return new tEnvoyNaClKey(h.box.before(e.getPublic(t),this.getPrivate(s)),"shared",s,l,d)}throw"tEnvoyNaClKey Fatal Error: Incompatible key types, both keys should be of type tEnvoyNaClKey."}throw r.error},this.toPublic=(e=null)=>new tEnvoyNaClKey(this.getPublic(e),"public",s,l,d),!["public","private","secret","shared"].includes(r))throw"tEnvoyNaClKey Fatal Error: argument type of method constructor is invalid.";{s=a,"secret"==u&&(e=d.util.pack(e,32)),o=null==a?e:(n=h.randomBytes(12),new tEnvoyNaClKey(a,"secret",null,[],d).encrypt(e,n)),u=r,l=[];let t=[];"private"==u||"shared"==u||"secret"==u?t=["getPublic","encrypt","decrypt","encryptEphemeral","decryptEphemeral","genSigningKey","genSharedKey","sign","verify"]:"public"==u&&(t=["encrypt","genSharedKey","verify"]),null==i&&(i=[]);for(let e=0;e{if(null==s)return{proceed:!0};{let e;return"private"==u||"shared"==u||"secret"==u?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==u&&(e=["getPublic","setPublic","setPasswordProtected"]),e.includes(t)||l.includes(t)?null==r?{proceed:!1,error:"tEnvoyNaClKey Fatal Error: Key is password-protected for method "+t+", and no password was specified"}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,s)?{proceed:!0}:{proceed:!1,error:"tEnvoyNaClKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}}}}function tEnvoyNaClSigningKey(e,r="secret",a=null,i=[],t=TogaTech.tEnvoy){let o,n,s,l,u,c,d=t,h=d.core.nacl;if(this.toString=()=>`[tEnvoyNaClSigningKey ${u}]`,this.getType=()=>u,this.getPasswordProtected=()=>d.util.arrayDeepCopy(l),this.setPasswordProtected=(r,e=null)=>{e=c("setPasswordProtected",e);if(!e.proceed)throw e.error;{l=[];let t=[];"private"==u?t=["getPublic","sign","verify"]:"public"==u&&(t=["verify"]),null==r&&(r=[]);for(let e=0;e{var t=c("getPrivate",e);if(t.proceed){if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";if(null==s)return d.util.arrayDeepCopy(o);e=new tEnvoyNaClKey(s,"secret",null,[],d).decrypt(o);if(d.util.bytesToHex(e.nonce)==d.util.bytesToHex(n))return e.message;throw"tEnvoyNaClSigningKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}throw t.error},this.setPrivate=(e,t=null)=>{t=c("setPrivate",t);if(!t.proceed)throw t.error;if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument privateKey of method setPrivate is required and does not have a default value.";if(32!=(e=d.util.mixedToUint8Array(e,!1)).length)throw"tEnvoyNaClSigningKey Fatal Error: argument privateKey of method setPrivate is invalid, length should be 32 (was "+e.length+").";if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";o=null==s?e:(n=h.randomBytes(12),new tEnvoyNaClKey(s,"secret",null,[],d).encrypt(e,n))},this.getPublic=(e=null)=>{var t=c("getPublic",e);if(t.proceed){if("private"==u)return h.sign.keyPair.fromSecretKey(this.getPrivate(s)).publicKey;if("public"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a public component.";if(null==s)return d.util.arrayDeepCopy(o);e=new tEnvoyNaClKey(s,"secret",null,[],d).decrypt(o);if(d.util.bytesToHex(e.nonce)==d.util.bytesToHex(n))return e.message;throw"tEnvoyNaClSigningKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}throw t.error},this.setPublic=(e,t=null)=>{t=c("setPublic",t);if(!t.proceed)throw t.error;if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument publicKey of method setPublic is required and does not have a default value.";if(32!=(e=d.util.mixedToUint8Array(e,!1)).length)throw"tEnvoyNaClSigningKey Fatal Error: argument publicKey of method setPublic is invalid, length should be 32 (was "+e.length+").";if("private"==u)throw"tEnvoyNaClSigningKey Fatal Error: Key has a public component that depends on the private component.";if("public"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a public component.";o=null==s?e:(n=h.randomBytes(12),new tEnvoyNaClSigningKey(s,"secret",null,[],d).encrypt(e,n))},this.sign=(e,t=null)=>{var r=c("sign",t);if(r.proceed){if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument message of method sign is required and does not have a default value.";if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";e=d.util.pack(e);t=d.util.bytesToHex(h.hash(e));return{signature:t+"::"+d.util.bytesToHex(h.sign.detached(h.hash(e),this.getPrivate(s))),hash:t}}throw r.error},this.verify=(e,t=null)=>{var r=c("verify",t);if(r.proceed){if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument signed of method verify is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClSigningKey Fatal Error: Invalid signature.";var a=d.util.hexToBytes(e.split("::")[0]),t=d.util.hexToBytes(e.split("::")[1]);return{verified:h.sign.detached.verify(a,t,this.getPublic(s)),hash:e.split("::")[0]}}throw r.error},this.verifyWithMessage=(e,t,r=null)=>{if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument signed of method verifyWithMessage is required and does not have a default value.";if(null==t)throw"tEnvoyNaClSigningKey Fatal Error: argument message of method verifyWithMessage is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClSigningKey Fatal Error: Invalid signature.";var a=d.util.hexToBytes(e.split("::")[0]);return this.verify(e,r)&&d.util.bytesToHex(h.hash(d.util.pack(t)))==d.util.bytesToHex(a)},this.toPublic=(e=null)=>new tEnvoyNaClSigningKey(this.getPublic(e),"public",s,l,d),!["public","private"].includes(r))throw"tEnvoyNaClSigningKey Fatal Error: argument type of method constructor is invalid.";{s=a,o=null==a?e:(n=h.randomBytes(12),new tEnvoyNaClKey(a,"secret",null,[],d).encrypt(e,n)),u=r,l=[];let t=[];"private"==u?t=["getPublic","sign","verify"]:"public"==u&&(t=["verify"]),null==i&&(i=[]);for(let e=0;e{if(null==s)return{proceed:!0};{let e;return"private"==u?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==u&&(e=["getPublic","setPublic","setPasswordProtected"]),e.includes(t)||l.includes(t)?null==r?{proceed:!1,error:"tEnvoyNaClSigningKey Fatal Error: Key is password-protected for method "+t+", and no password was specified."}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,s)?{proceed:!0}:{proceed:!1,error:"tEnvoyNaClSigningKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}}}}TogaTech.tEnvoy=new tEnvoy(openpgp,nacl,sha256),module.exports={tEnvoy:tEnvoy,tEnvoyPGPKey:tEnvoyPGPKey,tEnvoyNaClKey:tEnvoyNaClKey,tEnvoyNaClSigningKey:tEnvoyNaClSigningKey}; +const openpgp=require("../openpgpjs/dist/openpgp.js"),nacl=require("../tweetnacljs/nacl.js"),sha256=require("../fast-sha256-js");var TogaTech={};function tEnvoy(e=openpgp,t=nacl,r=sha256){let y=e,l=t,o=r;this.dictionary="abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby bachelor bacon badge bag balance balcony ball bamboo banana banner bar barely bargain barrel base basic basket battle beach bean beauty because become beef before begin behave behind believe below belt bench benefit best betray better between beyond bicycle bid bike bind biology bird birth bitter black blade blame blanket blast bleak bless blind blood blossom blouse blue blur blush board boat body boil bomb bone bonus book boost border boring borrow boss bottom bounce box boy bracket brain brand brass brave bread breeze brick bridge brief bright bring brisk broccoli broken bronze broom brother brown brush bubble buddy budget buffalo build bulb bulk bullet bundle bunker burden burger burst bus business busy butter buyer buzz cabbage cabin cable cactus cage cake call calm camera camp can canal cancel candy cannon canoe canvas canyon capable capital captain car carbon card cargo carpet carry cart case cash casino castle casual cat catalog catch category cattle caught cause caution cave ceiling celery cement census century cereal certain chair chalk champion change chaos chapter charge chase chat cheap check cheese chef cherry chest chicken chief child chimney choice choose chronic chuckle chunk churn cigar cinnamon circle citizen city civil claim clap clarify claw clay clean clerk clever click client cliff climb clinic clip clock clog close cloth cloud clown club clump cluster clutch coach coast coconut code coffee coil coin collect color column combine come comfort comic common company concert conduct confirm congress connect consider control convince cook cool copper copy coral core corn correct cost cotton couch country couple course cousin cover coyote crack cradle craft cram crane crash crater crawl crazy cream credit creek crew cricket crime crisp critic crop cross crouch crowd crucial cruel cruise crumble crunch crush cry crystal cube culture cup cupboard curious current curtain curve cushion custom cute cycle dad damage damp dance danger daring dash daughter dawn day deal debate debris decade december decide decline decorate decrease deer defense define defy degree delay deliver demand demise denial dentist deny depart depend deposit depth deputy derive describe desert design desk despair destroy detail detect develop device devote diagram dial diamond diary dice diesel diet differ digital dignity dilemma dinner dinosaur direct dirt disagree discover disease dish dismiss disorder display distance divert divide divorce dizzy doctor document dog doll dolphin domain donate donkey donor door dose double dove draft dragon drama drastic draw dream dress drift drill drink drip drive drop drum dry duck dumb dune during dust dutch duty dwarf dynamic eager eagle early earn earth easily east easy echo ecology economy edge edit educate effort egg eight either elbow elder electric elegant element elephant elevator elite else embark embody embrace emerge emotion employ empower empty enable enact end endless endorse enemy energy enforce engage engine enhance enjoy enlist enough enrich enroll ensure enter entire entry envelope episode equal equip era erase erode erosion error erupt escape essay essence estate eternal ethics evidence evil evoke evolve exact example excess exchange excite exclude excuse execute exercise exhaust exhibit exile exist exit exotic expand expect expire explain expose express extend extra eye eyebrow fabric face faculty fade faint faith fall false fame family famous fan fancy fantasy farm fashion fat fatal father fatigue fault favorite feature february federal fee feed feel female fence festival fetch fever few fiber fiction field figure file film filter final find fine finger finish fire firm first fiscal fish fit fitness fix flag flame flash flat flavor flee flight flip float flock floor flower fluid flush fly foam focus fog foil fold follow food foot force forest forget fork fortune forum forward fossil foster found fox fragile frame frequent fresh friend fringe frog front frost frown frozen fruit fuel fun funny furnace fury future gadget gain galaxy gallery game gap garage garbage garden garlic garment gas gasp gate gather gauge gaze general genius genre gentle genuine gesture ghost giant gift giggle ginger giraffe girl give glad glance glare glass glide glimpse globe gloom glory glove glow glue goat goddess gold good goose gorilla gospel gossip govern gown grab grace grain grant grape grass gravity great green grid grief grit grocery group grow grunt guard guess guide guilt guitar gun gym habit hair half hammer hamster hand happy harbor hard harsh harvest hat have hawk hazard head health heart heavy hedgehog height hello helmet help hen hero hidden high hill hint hip hire history hobby hockey hold hole holiday hollow home honey hood hope horn horror horse hospital host hotel hour hover hub huge human humble humor hundred hungry hunt hurdle hurry hurt husband hybrid ice icon idea identify idle ignore ill illegal illness image imitate immense immune impact impose improve impulse inch include income increase index indicate indoor industry infant inflict inform inhale inherit initial inject injury inmate inner innocent input inquiry insane insect inside inspire install intact interest into invest invite involve iron island isolate issue item ivory jacket jaguar jar jazz jealous jeans jelly jewel job join joke journey joy judge juice jump jungle junior junk just kangaroo keen keep ketchup key kick kid kidney kind kingdom kiss kit kitchen kite kitten kiwi knee knife knock know lab label labor ladder lady lake lamp language laptop large later latin laugh laundry lava law lawn lawsuit layer lazy leader leaf learn leave lecture left leg legal legend leisure lemon lend length lens leopard lesson letter level liar liberty library license life lift light like limb limit link lion liquid list little live lizard load loan lobster local lock logic lonely long loop lottery loud lounge love loyal lucky luggage lumber lunar lunch luxury lyrics machine mad magic magnet maid mail main major make mammal man manage mandate mango mansion manual maple marble march margin marine market marriage mask mass master match material math matrix matter maximum maze meadow mean measure meat mechanic medal media melody melt member memory mention menu mercy merge merit merry mesh message metal method middle midnight milk million mimic mind minimum minor minute miracle mirror misery miss mistake mix mixed mixture mobile model modify mom moment monitor monkey monster month moon moral more morning mosquito mother motion motor mountain mouse move movie much muffin mule multiply muscle museum mushroom music must mutual myself mystery myth naive name napkin narrow nasty nation nature near neck need negative neglect neither nephew nerve nest net network neutral never news next nice night noble noise nominee noodle normal north nose notable note nothing notice novel now nuclear number nurse nut oak obey object oblige obscure observe obtain obvious occur ocean october odor off offer office often oil okay old olive olympic omit once one onion online only open opera opinion oppose option orange orbit orchard order ordinary organ orient original orphan ostrich other outdoor outer output outside oval oven over own owner oxygen oyster ozone pact paddle page pair palace palm panda panel panic panther paper parade parent park parrot party pass patch path patient patrol pattern pause pave payment peace peanut pear peasant pelican pen penalty pencil people pepper perfect permit person pet phone photo phrase physical piano picnic picture piece pig pigeon pill pilot pink pioneer pipe pistol pitch pizza place planet plastic plate play please pledge pluck plug plunge poem poet point polar pole police pond pony pool popular portion position possible post potato pottery poverty powder power practice praise predict prefer prepare present pretty prevent price pride primary print priority prison private prize problem process produce profit program project promote proof property prosper protect proud provide public pudding pull pulp pulse pumpkin punch pupil puppy purchase purity purpose purse push put puzzle pyramid quality quantum quarter question quick quit quiz quote rabbit raccoon race rack radar radio rail rain raise rally ramp ranch random range rapid rare rate rather raven raw razor ready real reason rebel rebuild recall receive recipe record recycle reduce reflect reform refuse region regret regular reject relax release relief rely remain remember remind remove render renew rent reopen repair repeat replace report require rescue resemble resist resource response result retire retreat return reunion reveal review reward rhythm rib ribbon rice rich ride ridge rifle right rigid ring riot ripple risk ritual rival river road roast robot robust rocket romance roof rookie room rose rotate rough round route royal rubber rude rug rule run runway rural sad saddle sadness safe sail salad salmon salon salt salute same sample sand satisfy satoshi sauce sausage save say scale scan scare scatter scene scheme school science scissors scorpion scout scrap screen script scrub sea search season seat second secret section security seed seek segment select sell seminar senior sense sentence series service session settle setup seven shadow shaft shallow share shed shell sheriff shield shift shine ship shiver shock shoe shoot shop short shoulder shove shrimp shrug shuffle shy sibling sick side siege sight sign silent silk silly silver similar simple since sing siren sister situate six size skate sketch ski skill skin skirt skull slab slam sleep slender slice slide slight slim slogan slot slow slush small smart smile smoke smooth snack snake snap sniff snow soap soccer social sock soda soft solar soldier solid solution solve someone song soon sorry sort soul sound soup source south space spare spatial spawn speak special speed spell spend sphere spice spider spike spin spirit split spoil sponsor spoon sport spot spray spread spring spy square squeeze squirrel stable stadium staff stage stairs stamp stand start state stay steak steel stem step stereo stick still sting stock stomach stone stool story stove strategy street strike strong struggle student stuff stumble style subject submit subway success such sudden suffer sugar suggest suit summer sun sunny sunset super supply supreme sure surface surge surprise surround survey suspect sustain swallow swamp swap swarm swear sweet swift swim swing switch sword symbol symptom syrup system table tackle tag tail talent talk tank tape target task taste tattoo taxi teach team tell ten tenant tennis tent term test text thank that theme then theory there they thing this thought three thrive throw thumb thunder ticket tide tiger tilt timber time tiny tip tired tissue title toast tobacco today toddler toe together toilet token tomato tomorrow tone tongue tonight tool tooth top topic topple torch tornado tortoise toss total tourist toward tower town toy track trade traffic tragic train transfer trap trash travel tray treat tree trend trial tribe trick trigger trim trip trophy trouble truck true truly trumpet trust truth try tube tuition tumble tuna tunnel turkey turn turtle twelve twenty twice twin twist two type typical ugly umbrella unable unaware uncle uncover under undo unfair unfold unhappy uniform unique unit universe unknown unlock until unusual unveil update upgrade uphold upon upper upset urban urge usage use used useful useless usual utility vacant vacuum vague valid valley valve van vanish vapor various vast vault vehicle velvet vendor venture venue verb verify version very vessel veteran viable vibrant vicious victory video view village vintage violin virtual virus visa visit visual vital vivid vocal voice void volcano volume vote voyage wage wagon wait walk wall walnut want warfare warm warrior wash wasp waste water wave way wealth weapon wear weasel weather web wedding weekend weird welcome west wet whale what wheat wheel when where whip whisper wide width wife wild will win window wine wing wink winner winter wire wisdom wise wish witness wolf woman wonder wood wool word work world worry worth wrap wreck wrestle wrist write wrong yard year yellow you young youth zebra zero zone zoo",this.wordsList=this.dictionary.split(" "),Object.defineProperty(this,"version",{get:()=>"v7.0.0"}),this.core={},Object.defineProperty(this.core,"openpgp",{get:()=>y}),Object.defineProperty(this.core,"nacl",{get:()=>l}),Object.defineProperty(this.core,"sha256",{get:()=>o}),this.util={},this.util.utf8encode=e=>{if(null==e)throw"tEnvoy Fatal Error: argument string of method util.utf8encode is required and does not have a default value.";return y.util.encode_utf8(e)},this.util.utf8decode=e=>{if(null==e)throw"tEnvoy Fatal Error: argument bytes of method util.utf8decode is required and does not have a default value.";return e instanceof Uint8Array||(e=this.util.mixedToUint8Array(e,!1)),y.util.decode_utf8(e)},this.util.stringToBytes=e=>{if(null==e)throw"tEnvoy Fatal Error: argument string of method util.stringToBytes is required and does not have a default value.";return y.util.str_to_Uint8Array(e)},this.util.bytesToString=e=>{if(null==e)throw"tEnvoy Fatal Error: argument bytes of method util.bytesToString is required and does not have a default value.";return e instanceof Uint8Array||(e=this.util.mixedToUint8Array(e,!1)),y.util.Uint8Array_to_str(e)},this.util.stringToHex=r=>{if(null==r)throw"tEnvoy Fatal Error: argument string of method util.stringToHex is required and does not have a default value.";let a="";for(let t=0;t{if(null==t)throw"tEnvoy Fatal Error: argument hex of method util.hexToString is required and does not have a default value.";let r="";for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument bytes of method util.bytesToHex is required and does not have a default value.";t instanceof Uint8Array||(t=this.util.mixedToUint8Array(t,!1));let r="";for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument hex of method util.hexToBytes is required and does not have a default value.";let r=new Uint8Array(t.length/2);for(let e=0;e{if(null==t)throw"tEnvoy Fatal Error: argument array of method util.arrayDeepCopy is required and does not have a default value.";let r;if(t instanceof Uint8Array)r=new Uint8Array(t.length);else{if(!(t instanceof Array))throw"tEnvoy Fatal Error: argument array of method util.arrayDeepCopy is invalid, array must be of type Uint8Array or Array.";r=new Array(t.length)}for(let e=0;e{if(null==r)return r;var o=(r,e)=>{if(r.length==e||null==e)return r;if(r.length>e){let t=new Uint8Array(e);for(let e=0;e{for(let e=0;e{if(null==n)return null;if(e){let t=!1,r=0;for(let e=0;ethis.util.mixedToUint8Array(e,!0,t),this.util.unpack=e=>this.util.uint8ArrayToMixed(e,!0),this.util.objectEquals=(e,t)=>{return(()=>{var e,t,a,o;let i=(e,t)=>{if(isNaN(e)&&isNaN(t)&&"number"==typeof e&&"number"==typeof t)return!0;if(e===t)return!0;if("function"==typeof e&&"function"==typeof t||e instanceof Date&&t instanceof Date||e instanceof RegExp&&t instanceof RegExp||e instanceof String&&t instanceof String||e instanceof Number&&t instanceof Number)return e.toString()===t.toString();if(!(e instanceof Object&&t instanceof Object))return!1;if(e.isPrototypeOf(t)||t.isPrototypeOf(e))return!1;if(e.constructor!==t.constructor)return!1;if(e.prototype!==t.prototype)return!1;if(-1{for(e=e.replace("Version: OpenPGP.js v4.10.10","Version: tEnvoy "+this.version).replace("Comment: https://openpgpjs.org","Comment: https://togatech.org/ (TogaTech tEnvoy)");"-"!=e[0];)e=e.substring(1);return e},this.hash=(e,t="sha256")=>{if("function"==typeof this.hash[t=null==t?"sha256":t])return this.hash[t](e);throw"tEnvoy Fatal Error: argument mixed of method hash is invalid."},this.hash.sha256=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha256 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.sha256(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha1=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha1 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.sha1(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha224=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha224 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.sha224(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha384=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha384 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.sha384(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.sha512=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.sha512 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.sha512(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.md5=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.md5 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.md5(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.hash.ripemd160=r=>new Promise(async(e,t)=>{null==r&&t("tEnvoy Fatal Error: argument mixed of method hash.ripemd160 is required and does not have a default value."),e(this.util.stringToHex(this.util.bytesToString(await y.crypto.hash.ripemd(this.util.mixedToUint8Array(r,!1)).catch(e=>{t(e)}))))}),this.random={},this.random.bytes=(r=1)=>new Promise(async(e,t)=>{null==r&&(r=1),r=isNaN(parseInt(r))?0:parseInt(r),e(await y.crypto.random.getRandomBytes(r).catch(e=>{t(e)}))}),this.random.number=(r=0,a=1)=>new Promise(async(e,t)=>{null==r&&(r=0),r=isNaN(parseFloat(r))?0:parseFloat(r),null==a&&(a=0),a=isNaN(parseFloat(a))?0:parseFloat(a),e((await this.random.bytes(1).catch(e=>{t(e)}))[0]/255*(a-r)+r)}),this.random.string=(o=10)=>new Promise(async(e,t)=>{null==o&&(o=10),o=isNaN(parseInt(o))?10:parseInt(o);let r="";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let e=0;e{t(e)})));e(r)}),this.random.words=(a=12)=>new Promise(async(e,t)=>{null==a&&(a=12),a=isNaN(parseInt(a))?12:parseInt(a);let r="";for(let e=0;e{t(e)}))],e+1!=a&&(r+=" ");e(r)}),this.keyFactory={},this.keyFactory.pbkdf2=(e,t,r=15e4,a=32)=>{if(null==e)throw"tEnvoy Fatal Error: argument password of method keyFactory.pbkdf2 is required and does not have a default value.";if(null==t)throw"tEnvoy Fatal Error: argument salt of method keyFactory.pbkdf2 is required and does not have a default value.";return null==r&&(r=15e4),r=isNaN(parseInt(r))?15e4:parseInt(r),null==a&&(a=32),a=isNaN(parseInt(a))?32:parseInt(a),e=this.util.mixedToUint8Array(e,!1),t=this.util.mixedToUint8Array(t,!1),o.pbkdf2(e,t,r,a)},this.keyFactory.genSeedFromCredentials=(e,t,r=15e4,a=32)=>(null==e&&reject("tEnvoy Fatal Error: argument username of method keyFactory.genSeedFromCredentials is required and does not have a default value."),null==t&&reject("tEnvoy Fatal Error: argument password of method keyFactory.genSeedFromCredentials is required and does not have a default value."),null==a&&(a=32),a=isNaN(parseInt(a))?32:parseInt(a),this.keyFactory.pbkdf2(t,e,r,a)),this.keyFactory.genPGPKeys=d=>new Promise(async(e,t)=>{null==(d=null==d?{}:d).passwordProtected&&(d.passwordProtected=[]);let r,a,o,i;if(null!=d.keyArmored){let e=new tEnvoyPGPKey(d.keyArmored,null,null,[],this);var n=e.getType();"private"==n?(o=await e.getPrivateArmored(d.password),i=await e.getPublicArmored(d.password)):"public"==n?i=await e.getPublicArmored(d.password):t("tEnvoy Fatal Error: argument key of object args of method keyFactory.genPGPKeys must either be public or private. For aes keys, use keyFactory.genPGPSymmetricKey instead."),e.destroy()}else{null==d.options&&(d.options={curve:"curve25519"}),null==d.users&&null==d.options.userIds&&(d.users=[{}]),null==d.users&&null!=d.options.userIds&&(d.users=d.options.userIds),null!=d.users&&null!=d.options.userIds&&(d.options.userIds=d.options.userIds.filter(t=>null==d.users.find(e=>e.name==t.name&&e.email==t.email&&e.comment==t.comment)),d.users=d.users.concat(d.options.userIds));for(let e=0;e{t(e)});o=this.util.fixArmor(n.privateKeyArmored),i=this.util.fixArmor(n.publicKeyArmored)}var c;a=null==d.password?(null!=o&&(r=new tEnvoyPGPKey(o,"private",d.password,d.passwordProtected,this)),new tEnvoyPGPKey(i,"public",d.password,d.passwordProtected,this)):(null!=o&&(c=await y.encrypt({message:await y.message.fromText(o),passwords:[d.password]}).catch(e=>{t(e)}),r=new tEnvoyPGPKey(this.util.fixArmor(c.data),"private",d.password,d.passwordProtected,this)),c=await y.encrypt({message:await y.message.fromText(i),passwords:[d.password]}).catch(e=>{t(e)}),new tEnvoyPGPKey(this.util.fixArmor(c.data),"public",d.password,d.passwordProtected,this)),e({privateKey:r,publicKey:a})}),this.keyFactory.genPGPSymmetricKey=a=>new Promise(async(e,t)=>{var r;null==(a=null==a?{}:a).passwordProtected&&(a.passwordProtected=[]),null==a.key&&t("tEnvoy Fatal Error: argument key of object args of method keyFactory.genPGPSymmetricKey is required and does not have a default value."),null==a.password?e(new tEnvoyPGPKey(a.key,"aes",null,a.passwordProtected,this)):(r=await y.encrypt({message:await y.message.fromText(a.key),passwords:[a.password]}).catch(e=>{t(e)}),e(new tEnvoyPGPKey(this.util.fixArmor(r.data),"aes",a.password,a.passwordProtected,this)))}),this.keyFactory.genNaClKeys=e=>{null==(e=null==e?{}:e).passwordProtected&&(e.passwordProtected=[]);let t,r,a,o,i;if(null!=e.key){if(null==e.keyType)throw"tEnvoy Fatal Error: argument keyType of object args of method keyFactory.genNaClKeys is required when using args.key and does not have a default value.";if("private"==e.keyType)t=new tEnvoyNaClKey(e.key,"private",e.password,e.passwordProtected,this),r=t.toPublic();else{if("public"!=e.keyType)throw"tEnvoy Fatal Error: argument keyType of object args of method keyFactory.genNaClKeys must either be public or private. For secret (or shared) keys, use keyFactory.genNaClSymmetricKey instead.";r=new tEnvoyNaClKey(e.key,"public",e.password,e.passwordProtected,this)}}else i=null==e.seed?l.box.keyPair():l.box.keyPair.fromSecretKey(e.seed),t=new tEnvoyNaClKey(i.secretKey,"private",e.password,e.passwordProtected,this),r=new tEnvoyNaClKey(i.publicKey,"public",e.password,e.passwordProtected,this);return null!=t&&(e=t.genSigningKeys(e.password),a=e.privateKey,o=e.publicKey),{privateKey:t,publicKey:r,privateSigningKey:a,publicSigningKey:o}},this.keyFactory.genNaClSymmetricKey=e=>{if(null==(e=null==e?{}:e).passwordProtected&&(e.passwordProtected=[]),null==e.key)throw"tEnvoy Fatal Error: argument key of object args of method keyFactory.genNaClSymmetricKey is required and does not have a default value.";return new tEnvoyNaClKey(e.key,"secret",e.password,e.passwordProtected,this)}}function tEnvoyPGPKey(o,e="aes",r=null,a=[],t=TogaTech.tEnvoy){let i,n,s,l,u,c,d,y=t,h=y.core.openpgp;if(this.destroy=(e=null)=>{e=u("destroy",e);if(!e.proceed)throw e.error;for(let e=0;e`[tEnvoyPGPKey ${l}]`,this.getType=()=>l,this.getPasswordProtected=()=>y.util.arrayDeepCopy(s),this.setPasswordProtected=(r,e=null)=>{e=u("setPasswordProtected",e);if(!e.proceed)throw e.error;{s=[];let t=[];"private"==l?t=["destroy","getId","getPublic","encrypt","decrypt","sign","verify"]:"public"==l?t=["destroy","getId","encrypt","verify"]:"aes"==l&&(t=["destroy","encrypt","decrypt"]),null==r&&(r=[]);for(let e=0;enew Promise(async(t,e)=>{if("private"==l||"public"==l){var r=u("getId",a);if(r.proceed){let e=await this.getPublic(n);t(e.getKeyId().toHex())}else e(r.error)}else e("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component.")}),this.getKey=(a=null)=>new Promise(async(e,t)=>{var r;"aes"==l?null==n?e(c()):(r=u("getKey",a)).proceed?e((await h.decrypt({message:await h.message.readArmored(c()),passwords:[n]}).catch(e=>{t(e)})).data):t(r.error):t("tEnvoyPGPKey Fatal Error: Key does not have a symmetric component.")}),this.getPrivate=(a=null)=>new Promise(async(e,t)=>{var r=await this.getPrivateArmored(a).catch(e=>{t(e)});e((await h.key.readArmored(r).catch(e=>{t(e)})).keys[0])}),this.setPrivate=(r,a=null)=>new Promise(async(e,t)=>{await this.setPrivateArmored(r.armor(),a).catch(e=>{t(e)}),e()}),this.getPrivateArmored=(a=null)=>new Promise(async(e,t)=>{var r;"private"==l?null==n?e(c()):(r=u("getPrivate",a)).proceed?e((await h.decrypt({message:await h.message.readArmored(o),passwords:[n]}).catch(e=>{t(e)})).data):t(r.error):t("tEnvoyPGPKey Fatal Error: Key does not have a private component.")}),this.setPrivateArmored=(o,i=null)=>new Promise(async(e,t)=>{var r,a;"private"==l?(null==o&&t("tEnvoyPGPKey Fatal Error: argument keyArmored of method setPrivateArmored is required and does not have a default value."),o=y.util.fixArmor(o),null==n?(d(o),e()):(r=u("setPrivate",i)).proceed?(a=await h.encrypt({message:await h.message.fromText(o),passwords:[n]}).catch(e=>{t(e)}),d(y.util.fixArmor(a.data)),e()):t(r.error)):t("tEnvoyPGPKey Fatal Error: Key does not have a private component.")}),this.getPublic=(a=null)=>new Promise(async(t,r)=>{var e=u("getPublic",a);if(e.proceed)if("private"==l){let e=await this.getPrivate(n);t(e.toPublic())}else if("public"==l){let e;e=null==n?c():(await h.decrypt({message:await h.message.readArmored(c()),passwords:[n]}).catch(e=>{r(e)})).data,t((await h.key.readArmored(e).catch(e=>{r(e)})).keys[0])}else r("tEnvoyPGPKey Fatal Error: Key does not have a public component.");else r(e.error)}),this.setPublic=(o,i=null)=>new Promise(async(e,t)=>{var r,a=u("setPublic",i);a.proceed?"public"==l?(null==n?d(y.util.fixArmor(o.armor())):(r=await h.encrypt({message:await h.message.fromText(o.armor()),passwords:[n]}).catch(e=>{t(e)}),d(y.util.fixArmor(r.data))),e()):"private"==l?t("tEnvoyPGPKey Fatal Error: Key has a public component that depends on the private component."):t("tEnvoyPGPKey Fatal Error: Key does not have a public component."):t(a.error)}),this.getPublicArmored=(a=null)=>new Promise(async(e,t)=>{let r=await this.getPublic(a).catch(e=>{t(e)});e(y.util.fixArmor(r.armor()))}),this.setPublicArmored=(a,o=null)=>new Promise(async(e,t)=>{var r;null==a?t("tEnvoyPGPKey Fatal Error: argument keyArmored of method setPublicArmored is required and does not have a default value."):(a=y.util.fixArmor(a),r=await h.key.readArmored(a).catch(e=>{t(e)}),await this.setPublic(r.keys[0],o),e())}),this.encrypt=(o,e=null)=>new Promise(async(r,a)=>{if(u("encrypt",e).proceed){let e,t;t="aes"==l?(e=await this.getKey(n).catch(e=>{a(e)}),await h.encrypt({message:await h.message.fromText(o),passwords:[e]}).catch(e=>{a(e)})):(e=await this.getPublic(n).catch(e=>{a(e)}),await h.encrypt({message:h.message.fromText(o),publicKeys:e}).catch(e=>{a(e)})),r(y.util.fixArmor(t.data))}}),this.decrypt=(o,t=null)=>new Promise(async(r,a)=>{var e=u("decrypt",t);if(e.proceed){o=y.util.fixArmor(o);let e,t;t="aes"==l?(e=await this.getKey(n).catch(e=>{a(e)}),await h.decrypt({message:await h.message.readArmored(o),passwords:[e]}).catch(e=>{a(e)})):(e=await this.getPrivate(n).catch(e=>{a(e)}),await h.decrypt({message:await h.message.readArmored(o),privateKeys:e}).catch(e=>{a(e)})),r(t.data)}else a(e.error)}),this.sign=(o,i=null)=>new Promise(async(e,t)=>{var r,a=u("sign",i);a.proceed?"aes"==l?t("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component."):(r=await this.getPrivate(n),r=await h.sign({message:await h.cleartext.fromText(o),privateKeys:r}),e(y.util.fixArmor(r.data))):t(a.error)}),this.verify=(o,i=null)=>new Promise(async(t,e)=>{var r,a=u("verify",i);if(a.proceed)if(o=y.util.fixArmor(o),"aes"==l)e("tEnvoyPGPKey Fatal Error: Key does not have an asymmetric component.");else{r=await this.getPublic(n);let e=await h.verify({message:await h.cleartext.readArmored(o),publicKeys:r});e.signatures[0]&&e.signatures[0].valid?t({verified:!0,keyid:e.signatures[0].keyid.toHex(),signatures:e.signatures,content:o.split("\n")[3]}):t({verified:!1})}else e(a.error)}),this.toPublic=(r=null)=>new Promise(async(e,t)=>{e(new tEnvoyPGPKey(await this.getPublicArmored(r),"public",n,s,y))}),0==o.indexOf("-----BEGIN PGP PRIVATE KEY BLOCK-----")?(l="private",o=y.util.fixArmor(o)):0==o.indexOf("-----BEGIN PGP PUBLIC KEY BLOCK-----")?(l="public",o=y.util.fixArmor(o)):0==o.indexOf("-----BEGIN PGP MESSAGE-----")?(l=e||"aes",o=y.util.fixArmor(o)):l="aes",!["public","private","aes"].includes(l))throw"tEnvoyPGPKey Fatal Error: argument type of method constructor is invalid.";{c=()=>y.util.unpack(i),d=e=>{i=y.util.pack(e)},n=r,d(o),s=[];let t=[];"private"==l?t=["destroy","getId","getPublic","encrypt","decrypt","sign","verify"]:"public"==l?t=["destroy","getId","encrypt","verify"]:"aes"==l&&(t=["destroy","encrypt","decrypt"]),null==a&&(a=[]);for(let e=0;e{if(null==n)return{proceed:!0};{let e;return"private"==l?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==l?e=["getPublic","setPublic","setPasswordProtected"]:"aes"==l&&(e=["getKey"]),e.includes(t)||s.includes(t)?null==r?{proceed:!1,error:"tEnvoyPGPKey Fatal Error: Key is password-protected for method "+t+", and no password was specified."}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,n)?{proceed:!0}:{proceed:!1,error:"tEnvoyPGPKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}},"aes"!=l&&this.getPublic(n)}}function tEnvoyNaClKey(r,e="secret",a=null,o=[],t=TogaTech.tEnvoy){let i,n,s,l,u,c,d,y,h=t,p=h.core.nacl;if(this.destroy=(e=null)=>{e=c("destroy",e);if(!e.proceed)throw e.error;for(let e=0;e`[tEnvoyNaClKey ${u}]`,this.getType=()=>u,this.getPasswordProtected=()=>h.util.arrayDeepCopy(l),this.setPasswordProtected=(r,e=null)=>{e=c("setPasswordProtected",e);if(!e.proceed)throw e.error;{l=[];let t=[];"private"==u||"shared"==u||"secret"==u?t=["destroy","getPublic","encrypt","decrypt","encryptEphemeral","decryptEphemeral","genSigningKey","genSharedKey","sign","verify"]:"public"==u&&(t=["destroy","encrypt","genSharedKey","verify"]),null==r&&(r=[]);for(let e=0;e{var e=c("getPrivate",t);if(e.proceed){if("private"!=u&&"secret"!=u&&"shared"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a private, secret, or shared component.";if(null==s)return d()instanceof Array||d()instanceof Uint8Array?h.util.arrayDeepCopy(d()):d();{let e=new tEnvoyNaClKey(s,"secret",null,[],h);t=e.decrypt(d());if(e.destroy(),h.util.bytesToHex(t.nonce)==h.util.bytesToHex(n))return t.message;throw"tEnvoyNaClKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}}throw e.error},this.setPrivate=(t,e=null)=>{e=c("setPrivate",e);if(!e.proceed)throw e.error;if(null==t)throw"tEnvoyNaClKey Fatal Error: argument privateKey of method setPrivate is required and does not have a default value.";if(32!=(t=h.util.mixedToUint8Array(t,!1)).length)throw"tEnvoyNaClKey Fatal Error: argument privateKey of method setPrivate is invalid, length should be 32 (was "+t.length+").";if("private"!=u&&"secret"!=u&&"shared"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a private, secret, or shared component.";if(null==s)y(t);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(s,"secret",null,[],h);y(e.encrypt(t,n)),e.destroy()}},this.getPublic=(t=null)=>{var e=c("getPublic",t);if(e.proceed){if("private"==u)return p.box.keyPair.fromSecretKey(this.getPrivate(s)).publicKey;if("public"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a public component.";if(null==s)return h.util.arrayDeepCopy(d());{let e=new tEnvoyNaClKey(s,"secret",null,[],h);t=e.decrypt(d());if(e.destroy(),h.util.bytesToHex(t.nonce)==h.util.bytesToHex(n))return t.message;throw"tEnvoyNaClKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}}throw e.error},this.setPublic=(t,e=null)=>{e=c("setPublic",e);if(!e.proceed)throw e.error;if(null==t)throw"tEnvoyNaClKey Fatal Error: argument publicKey of method setPublic is required and does not have a default value.";if(32!=(t=h.util.mixedToUint8Array(t,!1)).length)throw"tEnvoyNaClKey Fatal Error: argument publicKey of method setPublic is invalid, length should be 32 (was "+t.length+").";if("private"==u)throw"tEnvoyNaClKey Fatal Error: Key has a public component that depends on the private component.";if("public"!=u)throw"tEnvoyNaClKey Fatal Error: Key does not have a public component.";if(null==s)y(t);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(s,"secret",null,[],h);y(e.encrypt(t,n)),e.destroy()}},this.encrypt=(e,t,r=null)=>{var a=c("encrypt",r);if(a.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument message of method encrypt is required and does not have a default value.";if(null==t)throw"tEnvoyNaClKey Fatal Error: argument nonce of method encrypt is required and does not have a default value.";var o=h.util.pack(e).length,r=p.randomBytes(1)[0]%16,o=32+32*parseInt(o/32);o+=r,e=h.util.pack(e,o);o=h.util.pack(t);if("shared"==u){if(o.length>p.box.nonceLength)throw"tEnvoyNaClKey Fatal Error: Nonce is too long, ensure that nonce length is under "+p.box.nonceLength+" (was "+o.length+").";t=h.util.pack(t,p.box.nonceLength)}else if("secret"==u){if(o.length>p.secretbox.nonceLength)throw"tEnvoyNaClKey Fatal Error: Nonce is too long, ensure that nonce length is under "+p.secretbox.nonceLength+" (was "+o.length+").";t=h.util.pack(t,p.secretbox.nonceLength)}if("shared"==u)return h.util.bytesToHex(t)+"::"+h.util.bytesToHex(p.box.after(e,t,this.getPrivate(s)));if("secret"==u)return h.util.bytesToHex(t)+"::"+h.util.bytesToHex(p.secretbox(e,t,h.util.pack(this.getPrivate(s),32)));throw"tEnvoyNaClKey Fatal Error: Key cannot be used for encryption, only secret or shared keys can be used to encrypt."}throw a.error},this.decrypt=(e,t=null)=>{var r=c("decrypt",t);if(r.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument encrypted of method decrypt is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClKey Fatal Error: Invalid encrypted message.";var a=h.util.mixedToUint8Array(h.util.hexToBytes(e.split("::")[0]),!1),t=h.util.hexToBytes(e.split("::")[1]);if("shared"==u)return{message:h.util.unpack(p.box.open.after(t,a,this.getPrivate(s))),nonce:h.util.unpack(h.util.hexToBytes(e.split("::")[0]))};if("secret"==u)return{message:h.util.unpack(p.secretbox.open(t,a,h.util.pack(this.getPrivate(s),32))),nonce:h.util.unpack(h.util.hexToBytes(e.split("::")[0]))};throw"tEnvoyNaClKey Fatal Error: Key cannot be used for decryption, only secret or shared keys can be used to decrypt."}throw r.error},this.encryptEphemeral=(r,a,e=null)=>{e=c("encryptEphemeral",e);if(!e.proceed)throw e.error;{let t=h.keyFactory.genNaClKeys({password:s,passwordProtected:l});if("public"==u){let e=this.genSharedKey(t.privateKey,s,s);return e.encrypt(r,a,s)+"::"+h.util.bytesToHex(t.publicKey.getPublic(s))}if("private"!=u)throw"tEnvoyNaClKey Fatal Error: Key cannot be used for ephemeral encryption, only public or private keys can be used to encrypt ephemerally.";{let e=this.toPublic(s).genSharedKey(t.privateKey,s,s);return e.encrypt(r,a,s)+"::"+h.util.bytesToHex(t.publicKey.getPublic(s))}}},this.decryptEphemeral=(e,r=null)=>{var t=c("decryptEphemeral",r);if(t.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument encryptedEphemeral of method decryptEphemeral is required and does not have a default value.";if(3!=e.split("::").length)throw"tEnvoyNaClKey Fatal Error: Invalid ephemeral encrypted message.";r=e.split("::").slice(0,2).join("::");let t=new tEnvoyNaClKey(h.util.hexToBytes(e.split("::")[2]),"public",s,l,h);if("private"!=u)throw t.destroy(),"tEnvoyNaClKey Fatal Error: Key cannot be used for ephemeral decryption, only private keys can be used to decrypt ephemerally.";{let e=this.genSharedKey(t,s,s);return t.destroy(),e.decrypt(r)}}throw t.error},this.genSigningKeys=(e=null)=>{var t=c("genSigningKey",e);if(t.proceed){if("secret"==u)throw"tEnvoyNaClKey Fatal Error: Secret key cannot be used to generate signing keys.";e=p.sign.keyPair.fromSeed(this.getPrivate(s));return{privateKey:new tEnvoyNaClSigningKey(e.secretKey,"private",s,l,h),publicKey:new tEnvoyNaClSigningKey(e.publicKey,"public",s,l,h)}}throw t.error},this.genSharedKey=(e,t=null,r=null)=>{r=c("genSharedKey",r);if(r.proceed){if(null==e)throw"tEnvoyNaClKey Fatal Error: argument otherKey of method genSharedKey is required and does not have a default value.";if(e instanceof tEnvoyNaClKey){if("public"==u&&"private"==e.getType())return new tEnvoyNaClKey(p.box.before(this.getPublic(s),e.getPrivate(t)),"shared",s,l,h);if("private"!=u||"public"!=e.getType())throw"tEnvoyNaClKey Fatal Error: Incompatible key types, one key should be public, and the other should be private.";return new tEnvoyNaClKey(p.box.before(e.getPublic(t),this.getPrivate(s)),"shared",s,l,h)}throw"tEnvoyNaClKey Fatal Error: Incompatible key types, both keys should be of type tEnvoyNaClKey."}throw r.error},this.toPublic=(e=null)=>new tEnvoyNaClKey(this.getPublic(e),"public",s,l,h),!["public","private","secret","shared"].includes(e))throw"tEnvoyNaClKey Fatal Error: argument type of method constructor is invalid.";{if(d=()=>h.util.unpack(i),y=e=>{i=h.util.pack(e)},s=a,"secret"==u&&(r=h.util.pack(r,32)),null==a)y(r);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(a,"secret",null,[],h);y(e.encrypt(r,n)),e.destroy()}u=e,l=[];let t=[];"private"==u||"shared"==u||"secret"==u?t=["destroy","getPublic","encrypt","decrypt","encryptEphemeral","decryptEphemeral","genSigningKey","genSharedKey","sign","verify"]:"public"==u&&(t=["destroy","encrypt","genSharedKey","verify"]),null==o&&(o=[]);for(let e=0;e{if(null==s)return{proceed:!0};{let e;return"private"==u||"shared"==u||"secret"==u?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==u&&(e=["getPublic","setPublic","setPasswordProtected"]),e.includes(t)||l.includes(t)?null==r?{proceed:!1,error:"tEnvoyNaClKey Fatal Error: Key is password-protected for method "+t+", and no password was specified"}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,s)?{proceed:!0}:{proceed:!1,error:"tEnvoyNaClKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}}}}function tEnvoyNaClSigningKey(r,e="secret",a=null,o=[],t=TogaTech.tEnvoy){let i,n,s,l,u,c,d,y,h=t,p=h.core.nacl;if(this.destroy=(e=null)=>{e=c("destroy",e);if(!e.proceed)throw e.error;for(let e=0;e`[tEnvoyNaClSigningKey ${u}]`,this.getType=()=>u,this.getPasswordProtected=()=>h.util.arrayDeepCopy(l),this.setPasswordProtected=(r,e=null)=>{e=c("setPasswordProtected",e);if(!e.proceed)throw e.error;{l=[];let t=[];"private"==u?t=["destroy","getPublic","sign","verify"]:"public"==u&&(t=["destroy","verify"]),null==r&&(r=[]);for(let e=0;e{var e=c("getPrivate",t);if(e.proceed){if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";if(null==s)return h.util.arrayDeepCopy(d());{let e=new tEnvoyNaClKey(s,"secret",null,[],h);t=e.decrypt(d());if(e.destroy(),h.util.bytesToHex(t.nonce)==h.util.bytesToHex(n))return t.message;throw"tEnvoyNaClSigningKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}}throw e.error},this.setPrivate=(t,e=null)=>{e=c("setPrivate",e);if(!e.proceed)throw e.error;if(null==t)throw"tEnvoyNaClSigningKey Fatal Error: argument privateKey of method setPrivate is required and does not have a default value.";if(32!=(t=h.util.mixedToUint8Array(t,!1)).length)throw"tEnvoyNaClSigningKey Fatal Error: argument privateKey of method setPrivate is invalid, length should be 32 (was "+t.length+").";if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";if(null==s)y(t);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(s,"secret",null,[],h);y(e.encrypt(t,n)),e.destroy()}},this.getPublic=(t=null)=>{var e=c("getPublic",t);if(e.proceed){if("private"==u)return p.sign.keyPair.fromSecretKey(this.getPrivate(s)).publicKey;if("public"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a public component.";if(null==s)return h.util.arrayDeepCopy(d());{let e=new tEnvoyNaClKey(s,"secret",null,[],h);t=e.decrypt(d());if(e.destroy(),h.util.bytesToHex(t.nonce)==h.util.bytesToHex(n))return t.message;throw"tEnvoyNaClSigningKey Fatal Error: The encrypted key was tampered with, and the nonce is invalid."}}throw e.error},this.setPublic=(t,e=null)=>{e=c("setPublic",e);if(!e.proceed)throw e.error;if(null==t)throw"tEnvoyNaClSigningKey Fatal Error: argument publicKey of method setPublic is required and does not have a default value.";if(32!=(t=h.util.mixedToUint8Array(t,!1)).length)throw"tEnvoyNaClSigningKey Fatal Error: argument publicKey of method setPublic is invalid, length should be 32 (was "+t.length+").";if("private"==u)throw"tEnvoyNaClSigningKey Fatal Error: Key has a public component that depends on the private component.";if("public"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a public component.";if(null==s)y(t);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(s,"secret",null,[],h);y(e.encrypt(t,n)),e.destroy()}},this.sign=(e,t=null)=>{var r=c("sign",t);if(r.proceed){if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument message of method sign is required and does not have a default value.";if("private"!=u)throw"tEnvoyNaClSigningKey Fatal Error: Key does not have a private component.";e=h.util.pack(e);t=h.util.bytesToHex(p.hash(e));return{signature:t+"::"+h.util.bytesToHex(p.sign.detached(p.hash(e),this.getPrivate(s))),hash:t}}throw r.error},this.verify=(e,t=null)=>{var r=c("verify",t);if(r.proceed){if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument signed of method verify is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClSigningKey Fatal Error: Invalid signature.";var a=h.util.hexToBytes(e.split("::")[0]),t=h.util.hexToBytes(e.split("::")[1]);return{verified:p.sign.detached.verify(a,t,this.getPublic(s)),hash:e.split("::")[0]}}throw r.error},this.verifyWithMessage=(e,t,r=null)=>{if(null==e)throw"tEnvoyNaClSigningKey Fatal Error: argument signed of method verifyWithMessage is required and does not have a default value.";if(null==t)throw"tEnvoyNaClSigningKey Fatal Error: argument message of method verifyWithMessage is required and does not have a default value.";if(2!=e.split("::").length)throw"tEnvoyNaClSigningKey Fatal Error: Invalid signature.";var a=h.util.hexToBytes(e.split("::")[0]);return this.verify(e,r)&&h.util.bytesToHex(p.hash(h.util.pack(t)))==h.util.bytesToHex(a)},this.toPublic=(e=null)=>new tEnvoyNaClSigningKey(this.getPublic(e),"public",s,l,h),!["public","private"].includes(e))throw"tEnvoyNaClSigningKey Fatal Error: argument type of method constructor is invalid.";{if(d=()=>h.util.unpack(i),y=e=>{i=h.util.pack(e)},null==(s=a))y(r);else{n=p.randomBytes(12);let e=new tEnvoyNaClKey(a,"secret",null,[],h);y(e.encrypt(r,n)),e.destroy()}u=e,l=[];let t=[];"private"==u?t=["destroy","getPublic","sign","verify"]:"public"==u&&(t=["destroy","verify"]),null==o&&(o=[]);for(let e=0;e{if(null==s)return{proceed:!0};{let e;return"private"==u?e=["getPrivate","setPrivate","setPasswordProtected"]:"public"==u&&(e=["getPublic","setPublic","setPasswordProtected"]),e.includes(t)||l.includes(t)?null==r?{proceed:!1,error:"tEnvoyNaClSigningKey Fatal Error: Key is password-protected for method "+t+", and no password was specified."}:((t,r)=>{let a=!0;for(let e=0;e=r.length||t[e]!=r[e])&&(a=!1);return t.length!=r.length&&(a=!1),a})(r,s)?{proceed:!0}:{proceed:!1,error:"tEnvoyNaClSigningKey Fatal Error: Key is password-protected for method "+t+", and an incorrect password was specified."}:{proceed:!0}}}}}TogaTech.tEnvoy=new tEnvoy(openpgp,nacl,sha256),module.exports={tEnvoy:tEnvoy,tEnvoyPGPKey:tEnvoyPGPKey,tEnvoyNaClKey:tEnvoyNaClKey,tEnvoyNaClSigningKey:tEnvoyNaClSigningKey}; //# sourceMappingURL=tenvoy.min.js.map \ No newline at end of file diff --git a/node/tenvoy.min.js.map b/node/tenvoy.min.js.map index c295006a..2440fc1a 100644 --- a/node/tenvoy.min.js.map +++ b/node/tenvoy.min.js.map @@ -1 +1 @@ -{"version":3,"file":"./node/tenvoy.min.js.map","sources":["./node/tenvoy.js"],"names":["openpgp","require","nacl","sha256","TogaTech","tEnvoy","openpgpRef","naclRef","sha256Ref","_openpgp","_nacl","_sha256","this","dictionary","wordsList","split","Object","defineProperty","get","core","util","utf8encode","string","encode_utf8","utf8decode","bytes","Uint8Array","mixedToUint8Array","decode_utf8","stringToBytes","str_to_Uint8Array","bytesToString","Uint8Array_to_str","stringToHex","hex","i","length","c","charCodeAt","toString","hexToString","String","fromCharCode","parseInt","substring","bytesToHex","hexToBytes","arrayDeepCopy","array","copy","Array","mixed","includeType","pad","returnArray","returnUint8Array","Number","isInteger","arrayOnlyContainsNumbers","hexAsArray","isNaN","isFinite","pack","constructor","toJSON","mixedAsUint8Array","JSON","stringify","uint8ArrayToMixed","uint8Array","paddingOver","startIndex","unpaddedUint8Array","fakeUint8Array","randomBytes","fakeReturnArray","parse","NaN","parseFloat","Infinity","unpack","packed","objectEquals","object1","object2","l","leftChain","rightChain","compare2Objects","x","y","Date","RegExp","isPrototypeOf","prototype","indexOf","p","hasOwnProperty","push","pop","arguments","deepCompare","fixArmor","armored","replace","version","hash","algorithm","Promise","async","resolve","reject","crypto","catch","err","sha1","sha224","sha384","sha512","md5","ripemd160","ripemd","random","getRandomBytes","number","min","max","result","characters","charAt","Math","floor","words","keyFactory","pbkdf2","password","salt","rounds","size","genSeedFromCredentials","username","genPGPKeys","args","passwordProtected","privateKey","publicKey","privateArmored","publicArmored","keyArmored","key","tEnvoyPGPKey","type","getType","getPrivateArmored","getPublicArmored","options","curve","users","userIds","filter","id","find","name","email","comment","concat","openpgpkey","generateKey","privateKeyArmored","publicKeyArmored","encryptedPublicKey","encryptedPrivateKey","encrypt","message","fromText","passwords","data","genPGPSymmetricKey","encryptedKey","genNaClKeys","privateSigningKey","publicSigningKey","naclKeyPair","keyType","tEnvoyNaClKey","toPublic","seed","box","keyPair","fromSecretKey","secretKey","signingKeys","genSigningKeys","genNaClSymmetricKey","_keyArmored","_password","_passwordProtected","_type","_assertPassword","_tEnvoy","getPasswordProtected","setPasswordProtected","assertion","proceed","error","protectable","includes","getId","getPublic","getKeyId","toHex","getKey","decrypt","readArmored","getPrivate","keys","setPrivate","setPrivateArmored","armor","privateKeyEncrypted","setPublic","publicKeyEncrypted","setPublicArmored","encryptKey","encrypted","publicKeys","decryptKey","decrypted","privateKeys","sign","signed","signKey","cleartext","verify","verifyKey","verified","signatures","valid","keyid","content","methodName","alwaysProtected","inputted","original","compareConstant","_key","_nonce","nonce","paddingLength","randomPadding","nonceCheck","nonceLength","secretbox","after","encryptedContent","open","encryptEphemeral","ephemeralKeys","sharedKey","genSharedKey","decryptEphemeral","encryptedEphemeral","slice","join","ephemeralKey","fromSeed","tEnvoyNaClSigningKey","otherKey","otherKeyPassword","before","hashed","signature","detached","verifyWithMessage","module","exports"],"mappings":"AAAA,MAAMA,QAAUC,QAAQ,gCAClBC,KAAOD,QAAQ,0BACfE,OAASF,QAAQ,qBAEvB,IAAIG,SAAW,GAEf,SAASC,OAAOC,EAAaN,QAASO,EAAUL,KAAMM,EAAYL,QACjE,IAAIM,EAAWH,EACXI,EAAQH,EACRI,EAAUH,EAGdI,KAAKC,WAAa,8zZAClBD,KAAKE,UAAYF,KAAKC,WAAWE,MAAM,KAGvCC,OAAOC,eAAeL,KAAM,UAAW,CACtCM,IAAK,IACG,WAITN,KAAKO,KAAO,GAEZH,OAAOC,eAAeL,KAAKO,KAAM,UAAW,CAC3CD,IAAK,IACGT,IAGTO,OAAOC,eAAeL,KAAKO,KAAM,OAAQ,CACxCD,IAAK,IACGR,IAGTM,OAAOC,eAAeL,KAAKO,KAAM,SAAU,CAC1CD,IAAK,IACGP,IAKTC,KAAKQ,KAAO,GAEZR,KAAKQ,KAAKC,WAAa,IACtB,GAAa,MAAVC,EACF,KAAM,+GAEP,OAAOb,EAASW,KAAKG,YAAYD,IAGlCV,KAAKQ,KAAKI,WAAa,IACtB,GAAY,MAATC,EACF,KAAM,8GAKP,OAHKA,aAAiBC,aACrBD,EAAQb,KAAKQ,KAAKO,kBAAkBF,GAAO,IAErChB,EAASW,KAAKQ,YAAYH,IAGlCb,KAAKQ,KAAKS,cAAgB,IACzB,GAAa,MAAVP,EACF,KAAM,kHAEP,OAAOb,EAASW,KAAKU,kBAAkBR,IAGxCV,KAAKQ,KAAKW,cAAgB,IACzB,GAAY,MAATN,EACF,KAAM,iHAKP,OAHKA,aAAiBC,aACrBD,EAAQb,KAAKQ,KAAKO,kBAAkBF,GAAO,IAErChB,EAASW,KAAKY,kBAAkBP,IAGxCb,KAAKQ,KAAKa,YAAc,IACvB,GAAa,MAAVX,EAC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mBlG,KAAK6C,EAAkB5G,IAG5CmK,EAAkB,CAAC0C,EAAYzG,EAAW,QAazC,GAAgB,MAAb4D,EACF,MAAO,CACNQ,SAAS,GAEJ,CACN,IAAIsC,EAMJ,MALY,WAAT5C,EACF4C,EAAkB,CAAC,aAAc,aAAc,wBAC7B,UAAT5C,IACT4C,EAAkB,CAAC,YAAa,YAAa,yBAE3CA,EAAgBnC,SAASkC,IAAe5C,EAAmBU,SAASkC,GACvD,MAAZzG,EACK,CACNoE,SAAS,EACTC,MAAO,0EAA4EoC,EAAa,qCA3B9E,CAACE,EAAUC,KAChC,IAAIpH,GAAS,EACb,IAAI,IAAI5F,EAAI,EAAGA,EAAI+M,EAAS9M,OAAQD,KAChCA,GAAKgN,EAAS/M,QAAU8M,EAAS/M,IAAMgN,EAAShN,MAClD4F,GAAS,GAMX,OAHGmH,EAAS9M,QAAU+M,EAAS/M,SAC9B2F,GAAS,GAEHA,GAmBKqH,CAAgB7G,EAAU4D,GAM7B,CACNQ,SAAS,GANH,CACNA,SAAS,EACTC,MAAO,0EAA4EoC,EAAa,8CAQ3F,CACNrC,SAAS,MASfvM,SAASC,OAAS,IAAIA,OAAOL,QAASE,KAAMC,QAE5C+Q,OAAOC,QAAU,CAAC9Q,OAAAA,OAAQiJ,aAAAA,aAAckC,cAAAA,cAAekF,qBAAAA"} \ No newline at end of file +{"version":3,"file":"./node/tenvoy.min.js.map","sources":["./node/tenvoy.js"],"names":["openpgp","require","nacl","sha256","TogaTech","tEnvoy","openpgpRef","naclRef","sha256Ref","_openpgp","_nacl","_sha256","this","dictionary","wordsList","split","Object","defineProperty","get","core","util","utf8encode","string","encode_utf8","utf8decode","bytes","Uint8Array","mixedToUint8Array","decode_utf8","stringToBytes","str_to_Uint8Array","bytesToString","Uint8Array_to_str","stringToHex","hex","i","length","c","charCodeAt","toString","hexToString","String","fromCharCode","parseInt","substring","bytesToHex","hexToBytes","arrayDeepCopy","array","copy","Array","mixed","includeType","pad","returnArray","returnUint8Array","Number","isInteger","arrayOnlyContainsNumbers","hexAsArray","isNaN","isFinite","pack","constructor","toJSON","mixedAsUint8Array","JSON","stringify","uint8ArrayToMixed","uint8Array","paddingOver","startIndex","unpaddedUint8Array","fakeUint8Array","randomBytes","fakeReturnArray","parse","NaN","parseFloat","Infinity","unpack","packed","objectEquals","object1","object2","l","leftChain","rightChain","compare2Objects","x","y","Date","RegExp","isPrototypeOf","prototype","indexOf","p","hasOwnProperty","push","pop","arguments","deepCompare","fixArmor","armored","replace","version","hash","algorithm","Promise","async","resolve","reject","crypto","catch","err","sha1","sha224","sha384","sha512","md5","ripemd160","ripemd","random","getRandomBytes","number","min","max","result","characters","charAt","Math","floor","words","keyFactory","pbkdf2","password","salt","rounds","size","genSeedFromCredentials","username","genPGPKeys","args","passwordProtected","privateKey","publicKey","privateArmored","publicArmored","keyArmored","key","tEnvoyPGPKey","type","getType","getPrivateArmored","getPublicArmored","destroy","options","curve","users","userIds","filter","id","find","name","email","comment","concat","openpgpkey","generateKey","privateKeyArmored","publicKeyArmored","encryptedPublicKey","encryptedPrivateKey","encrypt","message","fromText","passwords","data","genPGPSymmetricKey","encryptedKey","genNaClKeys","privateSigningKey","publicSigningKey","naclKeyPair","keyType","tEnvoyNaClKey","toPublic","seed","box","keyPair","fromSecretKey","secretKey","signingKeys","genSigningKeys","genNaClSymmetricKey","_keyArmored","_password","_passwordProtected","_type","_assertPassword","_getKey","_setKey","_tEnvoy","assertion","proceed","error","method","getPasswordProtected","setPasswordProtected","protectable","includes","getId","getPublic","getKeyId","toHex","getKey","decrypt","readArmored","getPrivate","keys","setPrivate","setPrivateArmored","armor","privateKeyEncrypted","setPublic","publicKeyEncrypted","setPublicArmored","encryptKey","encrypted","publicKeys","decryptKey","decrypted","privateKeys","sign","signed","signKey","cleartext","verify","verifyKey","verified","signatures","valid","keyid","content","newKey","methodName","alwaysProtected","inputted","original","compareConstant","_key","_nonce","decryptionKey","nonce","encryptionKey","paddingLength","randomPadding","nonceCheck","nonceLength","secretbox","after","encryptedContent","open","encryptEphemeral","ephemeralKeys","sharedKey","genSharedKey","decryptEphemeral","encryptedEphemeral","slice","join","ephemeralKey","fromSeed","tEnvoyNaClSigningKey","otherKey","otherKeyPassword","before","hashed","signature","detached","verifyWithMessage","module","exports"],"mappings":"AAAA,MAAMA,QAAUC,QAAQ,gCAClBC,KAAOD,QAAQ,0BACfE,OAASF,QAAQ,qBAEvB,IAAIG,SAAW,GAEf,SAASC,OAAOC,EAAaN,QAASO,EAAUL,KAAMM,EAAYL,QACjE,IAAIM,EAAWH,EACXI,EAAQH,EACRI,EAAUH,EAGdI,KAAKC,WAAa,8zZAClBD,KAAKE,UAAYF,KAAKC,WAAWE,MAAM,KAGvCC,OAAOC,eAAeL,KAAM,UAAW,CACtCM,IAAK,IACG,WAITN,KAAKO,KAAO,GAEZH,OAAOC,eAAeL,KAAKO,KAAM,UAAW,CAC3CD,IAAK,IACGT,IAGTO,OAAOC,eAAeL,KAAKO,KAAM,OAAQ,CACxCD,IAAK,IACGR,IAGTM,OAAOC,eAAeL,KAAKO,KAAM,SAAU,CAC1CD,IAAK,IACGP,IAKTC,KAAKQ,KAAO,GAEZR,KAAKQ,KAAKC,WAAa,IACtB,GAAa,MAAVC,EACF,KAAM,+GAEP,OAAOb,EAASW,KAAKG,YAAYD,IAGlCV,KAAKQ,KAAKI,WAAa,IACtB,GAAY,MAATC,EACF,KAAM,8GAKP,OAHKA,aAAiBC,aACrBD,EAAQb,KAAKQ,KAAKO,kBAAkBF,GAAO,IAErChB,EAASW,KAAKQ,YAAYH,IAGlCb,KAAKQ,KAAKS,cAAgB,IACzB,GAAa,MAAVP,EACF,KAAM,kHAEP,OAAOb,EAASW,KAAKU,kBAAkBR,IAGxCV,KAAKQ,KAAKW,cAAgB,IACzB,GAAY,MAATN,EACF,KAAM,iHAKP,OAHKA,aAAiBC,aACrBD,EAAQb,KAAKQ,KAAKO,kBAAkBF,GAAO,IAErChB,EAASW,KAAKY,kBAAkBP,IAGxCb,KAA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