MacPaw/ENCryptor: Encryption engine powering Encrypto app

文章推薦指數: 80 %
投票人數:10人

Encryption engine powering Encrypto app. Contribute to MacPaw/ENCryptor development by creating an account on GitHub. Skiptocontent {{message}} MacPaw / ENCryptor Public Notifications Star 61 Fork 7 EncryptionenginepoweringEncryptoapp macpaw.com/encrypto Apache-2.0License 61 stars 7 forks Star Notifications Code Issues 4 Pullrequests 0 Actions Projects 0 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights master Branches Tags Couldnotloadbranches Nothingtoshow Loading {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default Loading 2 branches 1 tag Code Loading Latestcommit   Gitstats 2 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime ENCryptor.xcodeproj     ENCryptor     encrypto-cli-bundle     encrypto-cli     .gitignore     CryptoFileStructure.md     ENCryptor.podspec     LICENSE     README.md     Viewcode ENCryptor Overview Installation Usage Opening(viewinghintandpreview,checkingpassword) Encrypting Decrypting Demo Resources License README.md ENCryptor Overview ENCryptorisanenginepoweringourawesomeEncryptoapp,nowopensource. Installation PreferredwayofinstallationisthroughCocoaPods pod'ENCryptor',:git=>'https://github.com/MacPaw/ENCryptor.git' Otherwise,youcanbuildtheprojectandcopyENCryptor.frameworktoyourproject. Usage Opening(viewinghintandpreview,checkingpassword) self.archiveOpener=[ENArchiveOpeneropenerWithArchiveURL:...]; self.archiveOpener.delegate=self; NSString*hint=self.archiveOpener.hint; ... if([self.archiveOpenercheckPassword:password]){ NSImage*preview=self.archiveOpener.preview; } Encrypting self.encryptor=[ENEncryptorencryptorWithSourceURLs:@[...]]; self.encryptor.delegate=self; [self.encryptorencryptWithPassword:passwordhint:hintpreview:preview]; ... -(void)encryptor:(ENEncryptor*)encryptordidFinishWithResultURL:(NSURL*)resultURL{ //resultURLnowcontainsresulting.cryptofilelocatedsomewhereintemporarydirectory } Decrypting self.decryptor=[ENDecryptordecryptorWithArchiveURL:resolvedInputURL]; self.decryptor.delegate=self; [self.decryptordecryptWithPassword:password]; ... -(void)decryptor:(ENDecryptor*)decryptordidFinishWithResultURL:(NSURL*)resultURL{ //resultURLnowcontainsunarchivedfileordirectorysomewhereintemporarydirectory } Demo ENCryptorcomesbundledwithencrypto-cliasdemo,alsoavailableforinstallationthroughhomebrewtap brewtapmacpaw/taps brewupdate brewinstallencrypto-cli $encrypto-cli usage:encrypto-cliencrypt--output decrypt--output preview Resources CryptoFileStructure License ENCryptorisreleasedunderApacheLicense2.0License.SeeLICENSEfilefordetails. About EncryptionenginepoweringEncryptoapp macpaw.com/encrypto Resources Readme License Apache-2.0License Releases 1 tags Packages0 Nopackagespublished Languages Objective-C 99.6% Ruby 0.4% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?