commit 4e977ac0a8ff04ca9cbd8cf4dca473240f570c37 Author: Joshua Shoemaker Date: Fri Sep 28 14:00:01 2018 -0500 Init Commit diff --git a/AESdecode.exe b/AESdecode.exe new file mode 100644 index 0000000..690884c Binary files /dev/null and b/AESdecode.exe differ diff --git a/AESencrypt.exe b/AESencrypt.exe new file mode 100644 index 0000000..179dca1 Binary files /dev/null and b/AESencrypt.exe differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a39aab --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# AES Hippa compliant encrypting node project + +Attached are EXECUTABLES that run a compiled version of node so there is no need to run from the command line + +The AESencrypt.EXE creates an encoded version of the file, and also dcrypts it afterwards to ensure it was encrytped properly + +The AESdecode.EXE only creates a file from the decrypted file. \ No newline at end of file diff --git a/d8c5eccc/chilkat.node b/d8c5eccc/chilkat.node new file mode 100644 index 0000000..7fd5647 Binary files /dev/null and b/d8c5eccc/chilkat.node differ diff --git a/decode.js b/decode.js new file mode 100644 index 0000000..f6d1c10 --- /dev/null +++ b/decode.js @@ -0,0 +1,80 @@ +var os = require('os') +if (os.platform() === 'win32') { + var chilkat = require('chilkat_node8_win32') +} else if (os.platform() === 'linux') { + if (os.arch() === 'arm') { + var chilkat = require('chilkat_node8_arm') + } else if (os.arch() == 'x86') { + var chilkat = require('chilkat_node8_linux32') + } else { + var chilkat = require('chilkat_node8_linux64') + } +} else if (os.platform() == 'darwin') { + var chilkat = require('chilkat_node8_macosx') +} + +function chilkatExample () { + var crypt = new chilkat.Crypt2() + + // Any string argument automatically begins the 30-day trial. + var success = crypt.UnlockComponent('30-day trial') + if (success !== true) { + console.log(crypt.LastErrorText) + return + } + + crypt.CryptAlgorithm = 'aes' + + // CipherMode may be "ecb" or "cbc" + crypt.CipherMode = 'cbc' + + // KeyLength may be 128, 192, 256 + crypt.KeyLength = 256 + + // The padding scheme determines the contents of the bytes + // that are added to pad the result to a multiple of the + // encryption algorithm's block size. AES has a block + // size of 16 bytes, so encrypted output is always + // a multiple of 16. + crypt.PaddingScheme = 0 + + // An initialization vector is required if using CBC mode. + // ECB mode does not use an IV. + // The length of the IV is equal to the algorithm's block size. + // It is NOT equal to the length of the key. + var ivHex = '000102030405060708090A0B0C0D0E0F' + crypt.SetEncodedIV(ivHex, 'hex') + + // The secret key must equal the size of the key. For + // 256-bit encryption, the binary secret key is 32 bytes. + // For 128-bit encryption, the binary secret key is 16 bytes. + var keyHex = '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F' + crypt.SetEncodedKey(keyHex, 'hex') + + // For demonstration purposes, a different instance of the object will be used + // for decryption. + var decrypt = new chilkat.Crypt2() + + // All settings must match to be able to decrypt: + decrypt.CryptAlgorithm = 'aes' + decrypt.CipherMode = 'cbc' + decrypt.KeyLength = 256 + decrypt.PaddingScheme = 0 + decrypt.SetEncodedIV(ivHex, 'hex') + decrypt.SetEncodedKey(keyHex, 'hex') + + // Decrypt the .aes + const inFile = './encodedData.zip.aes' + const outFile = './decodedData.zip' + console.log('Decodding...') + console.log('This may take a while depending on how large your file is...') + success = decrypt.CkDecryptFile(inFile, outFile) + if (success === false) { + console.log(decrypt.LastErrorText) + return + } + + console.log('Success!') +} + +chilkatExample() diff --git a/index.js b/index.js new file mode 100644 index 0000000..8eea9de --- /dev/null +++ b/index.js @@ -0,0 +1,98 @@ +// chilkat for other operating systems can only be installed truough npm on those systems + +var os = require('os') +if (os.platform() === 'win32') { + var chilkat = require('chilkat_node8_win32') +} else if (os.platform() === 'linux') { + if (os.arch() === 'arm') { + var chilkat = require('chilkat_node8_arm') + } else if (os.arch() == 'x86') { + var chilkat = require('chilkat_node8_linux32') + } else { + var chilkat = require('chilkat_node8_linux64') + } +} else if (os.platform() == 'darwin') { + var chilkat = require('chilkat_node8_macosx') +} + +function chilkatExample () { + var crypt = new chilkat.Crypt2() + + // Any string argument automatically begins the 30-day trial. + var success = crypt.UnlockComponent('30-day trial') + if (success !== true) { + console.log(crypt.LastErrorText) + return + } + + crypt.CryptAlgorithm = 'aes' + + // CipherMode may be "ecb" or "cbc" + crypt.CipherMode = 'cbc' + + // KeyLength may be 128, 192, 256 + crypt.KeyLength = 256 + + // The padding scheme determines the contents of the bytes + // that are added to pad the result to a multiple of the + // encryption algorithm's block size. AES has a block + // size of 16 bytes, so encrypted output is always + // a multiple of 16. + crypt.PaddingScheme = 0 + + // An initialization vector is required if using CBC mode. + // ECB mode does not use an IV. + // The length of the IV is equal to the algorithm's block size. + // It is NOT equal to the length of the key. + var ivHex = '000102030405060708090A0B0C0D0E0F' + crypt.SetEncodedIV(ivHex, 'hex') + + // The secret key must equal the size of the key. For + // 256-bit encryption, the binary secret key is 32 bytes. + // For 128-bit encryption, the binary secret key is 16 bytes. + var keyHex = '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F' + crypt.SetEncodedKey(keyHex, 'hex') + + // Encrypt a file, producing the .aes as output. + // The input file is unchanged, the output .aes contains the encrypted + // contents of the input file. + + // Note: The .aes output file has no file format. It is simply a stream + // of bytes that resembles random binary data. + var inFile = './rawData.zip' + var outFile = './encodedData.zip.aes' + console.log('Encoding...') + console.log('This may take a while depending on how large your file is...') + success = crypt.CkEncryptFile(inFile, outFile) + if (success !== true) { + console.log(crypt.LastErrorText) + return + } + + // For demonstration purposes, a different instance of the object will be used + // for decryption. + var decrypt = new chilkat.Crypt2() + + // All settings must match to be able to decrypt: + decrypt.CryptAlgorithm = 'aes' + decrypt.CipherMode = 'cbc' + decrypt.KeyLength = 256 + decrypt.PaddingScheme = 0 + decrypt.SetEncodedIV(ivHex, 'hex') + decrypt.SetEncodedKey(keyHex, 'hex') + + // Decrypt the .aes + inFile = './encodedData.zip.aes' + outFile = './recoveredData.zip' + console.log('Decoding...') + console.log('This may take a while depending on how large your file is...') + success = decrypt.CkDecryptFile(inFile, outFile) + if (success === false) { + console.log(decrypt.LastErrorText) + return + } + + console.log('Success!') +} + +chilkatExample() diff --git a/node_modules/chilkat_node8_win32/README.md b/node_modules/chilkat_node8_win32/README.md new file mode 100644 index 0000000..4c9092d --- /dev/null +++ b/node_modules/chilkat_node8_win32/README.md @@ -0,0 +1,65 @@ +# chilkat_node8_win32 + +Node.js classes for [Asn](http://www.chilkatsoft.com/refdoc/nodejsAsnRef.html) [Atom](http://www.chilkatsoft.com/refdoc/nodejsAtomRef.html) [AuthAws](http://www.chilkatsoft.com/refdoc/nodejsAuthAwsRef.html) [AuthAzureAD](http://www.chilkatsoft.com/refdoc/nodejsAuthAzureADRef.html) [AuthAzureStorage](http://www.chilkatsoft.com/refdoc/nodejsAuthAzureStorageRef.html) [AuthGoogle](http://www.chilkatsoft.com/refdoc/nodejsAuthGoogleRef.html) [Bounce](http://www.chilkatsoft.com/refdoc/nodejsBounceRef.html) [Bz2](http://www.chilkatsoft.com/refdoc/nodejsBz2Ref.html) [Cache](http://www.chilkatsoft.com/refdoc/nodejsCacheRef.html) [Cert](http://www.chilkatsoft.com/refdoc/nodejsCertRef.html) [CertChain](http://www.chilkatsoft.com/refdoc/nodejsCertChainRef.html) [CertStore](http://www.chilkatsoft.com/refdoc/nodejsCertStoreRef.html) [Charset](http://www.chilkatsoft.com/refdoc/nodejsCharsetRef.html) [CkDateTime](http://www.chilkatsoft.com/refdoc/nodejsCkDateTimeRef.html) [Compression](http://www.chilkatsoft.com/refdoc/nodejsCompressionRef.html) [Encryption PKCS7 HMAC Encoding DigitalSignature](http://www.chilkatsoft.com/refdoc/nodejsCrypt2Ref.html) [Csv](http://www.chilkatsoft.com/refdoc/nodejsCsvRef.html) [Diffie-Hellman](http://www.chilkatsoft.com/refdoc/nodejsDhRef.html) [DirTree](http://www.chilkatsoft.com/refdoc/nodejsDirTreeRef.html) [Dkim](http://www.chilkatsoft.com/refdoc/nodejsDkimRef.html) [Dsa](http://www.chilkatsoft.com/refdoc/nodejsDsaRef.html) [Date/Time](http://www.chilkatsoft.com/refdoc/nodejsDtObjRef.html) [Ecc](http://www.chilkatsoft.com/refdoc/nodejsEccRef.html) [Email](http://www.chilkatsoft.com/refdoc/nodejsEmailRef.html) [EmailBundle](http://www.chilkatsoft.com/refdoc/nodejsEmailBundleRef.html) [Ftp](http://www.chilkatsoft.com/refdoc/nodejsFtp2Ref.html) [Gzip](http://www.chilkatsoft.com/refdoc/nodejsGzipRef.html) [HtmlToText](http://www.chilkatsoft.com/refdoc/nodejsHtmlToTextRef.html) [HtmlToXml](http://www.chilkatsoft.com/refdoc/nodejsHtmlToXmlRef.html) [HTTP S3](http://www.chilkatsoft.com/refdoc/nodejsHttpRef.html) [HttpRequest](http://www.chilkatsoft.com/refdoc/nodejsHttpRequestRef.html) [HttpResponse](http://www.chilkatsoft.com/refdoc/nodejsHttpResponseRef.html) [Imap](http://www.chilkatsoft.com/refdoc/nodejsImapRef.html) [JavaKeyStore](http://www.chilkatsoft.com/refdoc/nodejsJavaKeyStoreRef.html) [JsonArray](http://www.chilkatsoft.com/refdoc/nodejsJsonArrayRef.html) [JsonObject](http://www.chilkatsoft.com/refdoc/nodejsJsonObjectRef.html) [Jwt](http://www.chilkatsoft.com/refdoc/nodejsJwtRef.html) [Log](http://www.chilkatsoft.com/refdoc/nodejsLogRef.html) [POP3 SMTP](http://www.chilkatsoft.com/refdoc/nodejsMailManRef.html) [Mailboxes](http://www.chilkatsoft.com/refdoc/nodejsMailboxesRef.html) [Mht](http://www.chilkatsoft.com/refdoc/nodejsMhtRef.html) [Mime](http://www.chilkatsoft.com/refdoc/nodejsMimeRef.html) [Ntlm](http://www.chilkatsoft.com/refdoc/nodejsNtlmRef.html) [OAuth1](http://www.chilkatsoft.com/refdoc/nodejsOAuth1Ref.html) [OAuth2](http://www.chilkatsoft.com/refdoc/nodejsOAuth2Ref.html) [Pem](http://www.chilkatsoft.com/refdoc/nodejsPemRef.html) [Pfx](http://www.chilkatsoft.com/refdoc/nodejsPfxRef.html) [PrivateKey](http://www.chilkatsoft.com/refdoc/nodejsPrivateKeyRef.html) [Prng](http://www.chilkatsoft.com/refdoc/nodejsPrngRef.html) [PublicKey](http://www.chilkatsoft.com/refdoc/nodejsPublicKeyRef.html) [Rest](http://www.chilkatsoft.com/refdoc/nodejsRestRef.html) [Rsa](http://www.chilkatsoft.com/refdoc/nodejsRsaRef.html) [Rss](http://www.chilkatsoft.com/refdoc/nodejsRssRef.html) [SFtp](http://www.chilkatsoft.com/refdoc/nodejsSFtpRef.html) [Scp](http://www.chilkatsoft.com/refdoc/nodejsScpRef.html) [ServerSentEvent](http://www.chilkatsoft.com/refdoc/nodejsServerSentEventRef.html) [Socket TLS](http://www.chilkatsoft.com/refdoc/nodejsSocketRef.html) [Spider](http://www.chilkatsoft.com/refdoc/nodejsSpiderRef.html) [Ssh](http://www.chilkatsoft.com/refdoc/nodejsSshRef.html) [SshKey](http://www.chilkatsoft.com/refdoc/nodejsSshKeyRef.html) [SshTunnel](http://www.chilkatsoft.com/refdoc/nodejsSshTunnelRef.html) [Stream](http://www.chilkatsoft.com/refdoc/nodejsStreamRef.html) [StringBuilder](http://www.chilkatsoft.com/refdoc/nodejsStringBuilderRef.html) [Tar](http://www.chilkatsoft.com/refdoc/nodejsTarRef.html) [Task](http://www.chilkatsoft.com/refdoc/nodejsTaskRef.html) [TaskChain](http://www.chilkatsoft.com/refdoc/nodejsTaskChainRef.html) [TrustedRoots](http://www.chilkatsoft.com/refdoc/nodejsTrustedRootsRef.html) [UnixCompress](http://www.chilkatsoft.com/refdoc/nodejsUnixCompressRef.html) [Upload](http://www.chilkatsoft.com/refdoc/nodejsUploadRef.html) [Url](http://www.chilkatsoft.com/refdoc/nodejsUrlRef.html) [Xml](http://www.chilkatsoft.com/refdoc/nodejsXmlRef.html) [XmlCertVault](http://www.chilkatsoft.com/refdoc/nodejsXmlCertVaultRef.html) [Xmp](http://www.chilkatsoft.com/refdoc/nodejsXmpRef.html) [Zip](http://www.chilkatsoft.com/refdoc/nodejsZipRef.html) [ZipCrc](http://www.chilkatsoft.com/refdoc/nodejsZipCrcRef.html) [ZipEntry](http://www.chilkatsoft.com/refdoc/nodejsZipEntryRef.html) + +**Search for "chilkat" in npm** to find supported operating systems and Node.js versions. + +**Freeware classes include:** Atom, Cert, CertChain, CertStore, Csv, Pfx, PrivateKey, PublicKey, Rss, Spider, TrustedRoots, Upload, Xml, JsonObject, ... + +**Commercial classes include:** Ssh, SFtp, Imap, Ftp2, Socket, Rest, OAuth2, Http, ... + +![chilkat!](http://www.chilkatsoft.com/images/dudeNpm.jpg) + +# install + +With [npm](http://npmjs.org) do: + +``` +npm install chilkat_node8_win32 +``` + +# usage +```js +var os = require('os'); +if (os.platform() == 'win32') { + var chilkat = require('chilkat_node8_win32'); +} else if (os.platform() == 'linux') { + if (os.arch() == 'arm') { + var chilkat = require('chilkat_node8_arm'); + } else os.arch() == 'x86') { + var chilkat = require('chilkat_node8_linux32'); + } else { + var chilkat = require('chilkat_node8_linux64'); + } +} else if (os.platform() == 'darwin') { + var chilkat = require('chilkat_node8_macosx'); +} + +var imap = new chilkat.Imap(); +var sftp = new chilkat.SFtp(); +var ftp = new chilkat.Ftp2(); +var zip = new chilkat.Zip(); +// etc.. + +``` + +# documentation + +Visit [Chilkat Node.js Reference Documentation](http://www.chilkatsoft.com/refdoc/nodejs.asp). + +# example code + +Visit [Chilkat Node.js Example Code](http://www.example-code.com/nodejs/default.asp) + +# user forum + +Visit [Chilkat Forum](http://www.chilkatforum.com/) + +# changelog + +Releases are documented at +[Chilkat Release Notes](http://www.cknotes.com/category/release-notes/) + +# license + +[Chilkat License](http://www.chilkatsoft.com/licensingExplained.asp) \ No newline at end of file diff --git a/node_modules/chilkat_node8_win32/chilkat.node b/node_modules/chilkat_node8_win32/chilkat.node new file mode 100644 index 0000000..7fd5647 Binary files /dev/null and b/node_modules/chilkat_node8_win32/chilkat.node differ diff --git a/node_modules/chilkat_node8_win32/license.txt b/node_modules/chilkat_node8_win32/license.txt new file mode 100644 index 0000000..9970871 --- /dev/null +++ b/node_modules/chilkat_node8_win32/license.txt @@ -0,0 +1,249 @@ +Chilkat Software License + +PLEASE READ THIS AGREEMENT BEFORE OPENING THIS SOFTWARE +PACKAGE. IF YOU OPEN THIS PACKAGE OR KEEP IT FOR MORE THAN +THIRTY (30) DAYS, YOU ACCEPT ALL THE TERMS AND CONDITIONS OF +THIS AGREEMENT. IF YOU DO NOT AGREE TO THESE TERMS AND +CONDITIONS, DO NOT OPEN THIS SOFTWARE PACKAGE. YOU MAY ONLY +UNLOCK AND/OR USE THE SOFTWARE FOR WHICH YOU HAVE A PAID- UP +LICENSE OR FOR WHICH YOU HAVE LEGALLY RECEIVED AN UNLOCK +KEY. + +(1) DEFINITION OF TERMS + +"Documentation": any explanatory written or on- line +material including, but not limited to, user guides, +reference manuals and HTML files. + +"Licensee": shall refer to the individual licensee, whether +as an individual programmer, company, or other organization. + +"Software": All material in this distribution including, but +not limited to, one or more of the following: source code, +object code, byte code, dynamic-link libraries, shared +libraries, static libraries, header files, executables, +scripts, sample programs, utility programs, makefiles and +Documentation. + +"Licensed Software": the Software for which Licensee has +paid the applicable license fee and received an authorized +unlock key. + +"Software Application Programming Interface ("API")": the +set of access methods, whether provided by Chilkat Software, +third parties, or developed by Licensee, through which the +programmatic services provided by the Licensed Software are +made available. + +"End-User Software Product": an application developed by +Licensee intended for execution on a computer, that makes +use of the Licensed Software in its implementation. + +The Licensed Software contains certain runtime libraries and +files intended for duplication and distribution by Licensee +within End User Software Products to the user(s) of the End +User Software Product(s) (the "Redistributable Components"). +The Redistributable Components are those files specifically +designated as being distributable as part of the Licensed +Software. + +SPECIAL LIMITED TERM EVALUATION LICENSE + +If Licensee has been provided with a copy of the Software +for evaluation purposes, Chilkat Software, Inc. ("Chilkat") +grants to Licensee, subject to the terms of this Single User +License Agreement (excluding Section 3, under which Licensee +has no rights) a non-exclusive, non- transferable, non- +concurrent limited internal use license for evaluation +purposes only. This license is for a period of thirty (30) +days, commencing upon receipt of the Software, or, if +received electronically, from Licensee's initial downloading +date, to evaluate the Software. If the Software is +acceptable, Licensee agrees to promptly notify his Chilkat +Sales Representative. Otherwise, Licensee shall immediately +cease any further use of the Software and destroy all copies +of the Software (including the original) and related +Documentation provided to Licensee by Chilkat. + +(2) GENERAL + +The Software is owned by Chilkat Software, Inc. ("Chilkat") +and is protected by U.S. copyright laws and other laws and +by international treaties. It is intended for use by a +software programmer who has experience using development +tools and class libraries. + +(3) LICENSE GRANTS + +(a) Per-developer license. Subject to the terms and conditions of this Agreement , +Chilkat grants to Licensee the perpetual, non-exclusive, non-transferable, world-wide +license for one (1) developer to (i) install and use the Licensed Software on any +number of computers, and (ii) use the associated user documentation and online help. + +(b) Site-wide license. If you have purchased a site-wide license, the following rights +apply notwithstanding section 3(a): Subject to the terms and conditions of this Agreement +, Chilkat grants to Licensee the perpetual, non-exclusive, non-transferable, world-wide +license for any number of developers at a single Licensee's office location to (i) +install the Licensed Software on any number of computers across Licensee's enterprise, +and (ii) use the associated user documentation and online help. + +(c) Licensee may also: + +(i) Make one backup copy of the Licensed Software solely for archival and +disaster-recovery purposes, or transfer the Licensed Software to a hard disk and +keep the original copy solely for archival and disaster-recovery purposes; and + +(ii) Reproduce and distribute the Redistributable Components directly or indirectly for +any number of applications to any number of end users and Licensee's Authorized OEMs, +VARs and Distributors, through customary distribution channels, world wide, on a royalty +free basis provided that such distribution is (i) in conjunction with an End User +Software Product developed by Licensee using the Licensed Software and (ii) the Licensed +Software is not the sole or primary component of such End User Software Product. +(iii) The license rights granted under this Agreement do not apply to development and +distribution of software development products or toolkits of any kind that are destined +to be used by software developers other than Licensee(s) that are Authorized. + +Licensee has no rights to use the Licensed Software beyond those specifically granted +in this section. + +(4) LICENSE RESTRICTIONS + +EXPORT CONTROLS: If the Software is for use outside the +United States of America, Licensee agrees to comply with all +relevant regulations of the United States Department of +Commerce and with the United States Export Administration +Act to insure that the Software is not exported in violation +of United States law. + +Notwithstanding any provisions in this Agreement to the +contrary, Licensee may not distribute any portion of the +Software other than the Redistributable Components. + +In addition, Licensee may not decompile, disassemble, or +reverse engineer any object code form of any portion of the +Software. + +(5) TITLE + +Licensee acknowledges and agrees that all right, title and +interest in and to the Software, including all intellectual +property rights therein, are the property of Chilkat, +subject only to the licenses granted to Licensee under this +Agreement. This Agreement is not a sale and does not +transfer to the Licensee any title or ownership in or to the +Software or any patent, copyright, trade secret, trade name, +trademark or other proprietary or intellectual property +rights related thereto. + +(6) NON-TRANSFERABILITY + +Except for Licensee's rights to distribute the +Redistributable Components, Licensee may not rent, transfer, +assign, sublicense or grant any rights in the Software, in +full or in part, to any other person or entity without +Chilkat's written consent, except that this agreement may be +assigned to a successor of Licensee in the case that all or +substantially all of the assets or equity of Licensee are +acquired by the successor. + +(7) LIMITED WARRANTIES + +Chilkat warrants to Licensee that the Licensed Software will +substantially perform the functions described in the +Documentation for a period of thirty (30) days after the +date of delivery of the Licensed Software to Licensee. +Chilkat's sole and exclusive obligation, and Licensee's sole +and exclusive remedy, under this warranty is limited to +Chilkat's using reasonable efforts to correct material, +documented, reproducible defects in the Licensed Software +that Licensee describes and documents to Chilkat during the +thirty (30) day warranty period. In the event that Chilkat +fails to correct a material, documented, reproducible defect +during this period, Chilkat may, at Chilkat's discretion, +replace the defective Licensed Software or refund to +Licensee the amount that Licensee paid Chilkat for the +defective Licensed Software and cancel this Agreement and +the licenses granted herein. In such event, Licensee agrees +to return to Chilkat all copies of the Licensed Software +(including the original). + +EXCEPT AS EXPRESSLY SET FORTH ABOVE, CHILKAT EXPRESSLY DISCLAIMS ALL OTHER WARRANTIES, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, RESULTS, OR OTHERWISE + +(8) LIMITATION OF LIABILITY + +IN NO EVENT SHALL CHILKAT BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, SPECIAL, +INCIDENTAL, OR CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS, REVENUES, +DATA OR OTHER ECONOMIC ADVANTAGE) WHETHER BASED ON CONTRACT, TORT, OR ANY OTHER LEGAL THEORY, +EVEN IF CHILKAT WAS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. NOTWITHSTANDING THE FOREGOING, +THE TOTAL AMOUNT OF CHILKAT'S LIABILITY TO LICENSEE SHALL BE LIMITED TO THE AMOUNT USER PAID +FOR THE USE OF THE SOFTWARE, IF ANY. + +(9) TERMINATION + +Chilkat reserves the right, at its sole discretion, to +terminate this Agreement upon written notice if Licensee has +breached the terms and conditions hereof. Licensee may +terminate this Agreement at any time by ceasing to use the +Licensed Software and by destroying all copies of the +Licensed Software (including the original). Sections 4, 5, +6, 7, 8, 9 and 10 survive any termination of this Agreement +and apply fully to any termination. Unless terminated as +provided herein by either party, this Agreement shall remain +in effect. Termination will not affect end user licenses of +the End User Software Product which contain the +Redistributable Components which were distributed by +Licensee prior to termination. + +(10) MISCELLANEOUS + +Applicable Law and Jurisdiction. This Agreement will be +governed by and construed in accordance with the laws of the +State of Illinois without regard to conflict of laws +principles and without regard to the 1980 U.N. Convention on +Contracts for the International Sale of Goods. The federal +and state courts of Illinois shall have exclusive +jurisdiction and venue to adjudicate any dispute arising out +of this Agreement, and Licensee expressly consents to (i) +the personal jurisdiction of the state and federal courts of +Illinois, and (ii) service of process being effected upon +Licensee by registered mail. + +Limitation of Actions. No action, regardless of form, may be +brought by either party more than twelve (12) months after +the cause of action has arisen. No such claim may be brought unless +Chilkat has first been given commercially reasonable notice, +a full written explanation of all pertinent details +(including copies of all materials), and a good faith +opportunity to resolve the matter. + +Invalidity and Waiver. Should any provision of this +Agreement be held by a court of law to be illegal, invalid, +or unenforceable, the legality, validity, and enforceability +of the remaining provisions of this Agreement will not be +affected or impaired thereby. The failure of any party to +enforce any of the terms or conditions of this Agreement, +unless waived in writing, will not constitute a waiver of +that party's right to enforce each and every term and +condition of this Agreement. + +U.S. Government Restricted Rights. The Licensed Software is +provided with Restricted Rights. Use, duplication, or +disclosure by the Government is subject to restrictions as +set forth in subparagraph (c) (1) (ii) of The Rights in +Technical Data and Computer Software clause at DFARS +252.227-7013 or subparagraphs (c) (1) and (2) of the +Commercial Computer Software Restricted Rights at 48 CFR +52.227- 19, as applicable. Manufacturer is Chilkat Software, +Inc., 1719 E Forest Ave, Wheaton, Illinois 60187 USA. + +LICENSEE ACKNOWLEDGES THAT HE HAS READ THIS AGREEMENT, +UNDERSTANDS IT AND AGREES TO BE BOUND BY ITS TERMS AND +CONDITIONS. LICENSEE FURTHER AGREES THAT IT IS THE COMPLETE +AND EXCLUSIVE STATEMENT OF THE AGREEMENT BETWEEN LICENSEE +AND CHILKAT WHICH SUPERSEDES ANY PROPOSAL OR PRIOR OR +CONTEMPORANEOUS AGREEMENT, ORAL OR WRITTEN, AND ANY OTHER +COMMUNICATIONS RELATING TO THE SUBJECT MATTER OF THIS +AGREEMENT + diff --git a/node_modules/chilkat_node8_win32/package.json b/node_modules/chilkat_node8_win32/package.json new file mode 100644 index 0000000..3dc65a9 --- /dev/null +++ b/node_modules/chilkat_node8_win32/package.json @@ -0,0 +1,98 @@ +{ + "_from": "chilkat_node8_win32", + "_id": "chilkat_node8_win32@9.50.75", + "_inBundle": false, + "_integrity": "sha512-3AXtqJJrwf8wklsgKkQPOFzNz6l+EES9iAzufyZd3UdwNAQzgT3BiyB7m8mcDU/RDXuhcrO9ZQu5RaJhIlfIYA==", + "_location": "/chilkat_node8_win32", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "chilkat_node8_win32", + "name": "chilkat_node8_win32", + "escapedName": "chilkat_node8_win32", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/chilkat_node8_win32/-/chilkat_node8_win32-9.50.75.tgz", + "_shasum": "0a5652e785034e728fe8ad9b3b5af176dcebd38a", + "_spec": "chilkat_node8_win32", + "_where": "C:\\Users\\joshu\\Documents\\github\\AESencrypt", + "author": { + "name": "Chilkat Software, Inc.", + "email": "support@chilkatsoft.com", + "url": "http://www.chilkatsoft.com/" + }, + "bundleDependencies": false, + "cpu": [ + "x64" + ], + "deprecated": false, + "description": "Chilkat classes for Node.js", + "engines": { + "node": ">=8.0.0 <9.0.0" + }, + "keywords": [ + "chilkat", + "SSH", + "SFTP", + "FTP", + "FTPS", + "POP3", + "SMTP", + "REST", + "JWT", + "OAuth2", + "IMAP", + "Certificate", + "ASN.1", + "PKCS7", + "Signature", + "RSA", + "DSA", + "ECC", + "S3", + "S/MIME", + "MIME", + "Email", + "PFX", + "PEM", + "SCP", + "Java KeyStore", + "GZip", + "DKIM", + "MHT", + "HMAC", + "Hashing", + "Compression", + "Socket", + "TLS", + "SSL", + "SSH Tunnel", + "Encoding", + "Charset", + "Zip", + "HTTP", + "Encryption" + ], + "licenses": [ + { + "type": "Chilkat", + "url": "http://www.chilkatsoft.com/licensingExplained.asp" + } + ], + "main": "chilkat.node", + "name": "chilkat_node8_win32", + "os": [ + "win32" + ], + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "9.50.75" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..065cbf9 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "aesencrypt", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "chilkat_node8_win32": { + "version": "9.50.75", + "resolved": "https://registry.npmjs.org/chilkat_node8_win32/-/chilkat_node8_win32-9.50.75.tgz", + "integrity": "sha512-3AXtqJJrwf8wklsgKkQPOFzNz6l+EES9iAzufyZd3UdwNAQzgT3BiyB7m8mcDU/RDXuhcrO9ZQu5RaJhIlfIYA==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..9cde67d --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "aesencrypt", + "version": "1.0.0", + "description": "Encrypt and decrypt files for AES methods", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/joshuashoemaker/AESencrypt.git" + }, + "author": "Joshua Shoemaker", + "license": "ISC", + "bugs": { + "url": "https://github.com/joshuashoemaker/AESencrypt/issues" + }, + "homepage": "https://github.com/joshuashoemaker/AESencrypt#readme", + "dependencies": { + "chilkat_node8_win32": "^9.50.75" + } +} diff --git a/rawData.zip b/rawData.zip new file mode 100644 index 0000000..337a56d Binary files /dev/null and b/rawData.zip differ diff --git a/rawData/sample.txt b/rawData/sample.txt new file mode 100644 index 0000000..5e1c309 --- /dev/null +++ b/rawData/sample.txt @@ -0,0 +1 @@ +Hello World \ No newline at end of file