{"id":1940,"url":"https://github.com/Gurpartap/AESCrypt-ObjC","last_synced_at":"2025-08-02T05:33:09.263Z","repository":{"id":4128323,"uuid":"5240064","full_name":"Gurpartap/AESCrypt-ObjC","owner":"Gurpartap","description":"A simple and opinionated AES encrypt / decrypt Objective-C class that just works.","archived":true,"fork":false,"pushed_at":"2016-07-04T15:33:34.000Z","size":195,"stargazers_count":775,"open_issues_count":18,"forks_count":217,"subscribers_count":54,"default_branch":"master","last_synced_at":"2024-12-06T09:34:54.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gurpartap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-31T01:19:22.000Z","updated_at":"2024-10-22T13:45:18.000Z","dependencies_parsed_at":"2022-09-10T20:21:02.973Z","dependency_job_id":null,"html_url":"https://github.com/Gurpartap/AESCrypt-ObjC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gurpartap/AESCrypt-ObjC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FAESCrypt-ObjC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FAESCrypt-ObjC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FAESCrypt-ObjC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FAESCrypt-ObjC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gurpartap","download_url":"https://codeload.github.com/Gurpartap/AESCrypt-ObjC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FAESCrypt-ObjC/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339405,"owners_count":24234544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:59.476Z","updated_at":"2025-08-02T05:33:08.997Z","avatar_url":"https://github.com/Gurpartap.png","language":"Objective-C","funding_links":[],"categories":["Security","Objective-C","OOM-Leaks-Crash"],"sub_categories":["Encryption","Other free courses","数据安全和算法"],"readme":"# AESCrypt-ObjC - Simple AES encryption / decryption for iOS and OS X\n\nAESCrypt is a simple to use, opinionated AES encryption / decryption Objective-C class that just works.\n\nAESCrypt uses the AES-256-CBC cipher and encodes the encrypted data with base64.\n\nA corresponding gem to easily handle AES encryption / decryption in Ruby is available at http://github.com/Gurpartap/aescrypt.\n\n## Installation\n\nAdd this line to your class:\n\n    #import \"AESCrypt.h\"\n\n## Usage\n\n    NSString *message = @\"top secret message\";\n    NSString *password = @\"p4ssw0rd\";\n\nEncrypting\n\n    NSString *encryptedData = [AESCrypt encrypt:message password:password];\n\nDecrypting\n\n    NSString *message = [AESCrypt decrypt:encryptedData password:password];\n\n## Common sense\n\nAESCrypt includes Base64 and Crypto extensions for NSData and NSString classes. If you're already using an extension that provides these, there is no need to use the included classes. Change the code in the AESCrypt class to correspond to your existing implementation of these extensions.\n\n## Corresponding usage in Ruby\n\nThe AESCrypt Ruby gem, available at http://github.com/Gurpartap/aescrypt, understands what you're talking about in your Objective-C code. The purpose of the Ruby gem and Objective-C class is to have something that works out of the box across the server (Ruby) and client (Objective-C). However, a standard encryption technique is implemented, which ensures that you can handle the data with any AES compatible library available across the web. So, you're not locked-in.\n\nHere's how you would use the Ruby gem:\n\n    message = \"top secret message\"\n    password = \"p4ssw0rd\"\n\nEncrypting\n\n    encrypted_data = AESCrypt.encrypt(message, password)\n\nDecrypting\n\n    message = AESCrypt.decrypt(encrypted_data, password)\n\nSee the Ruby gem README at http://github.com/Gurpartap/aescrypt for more details.\n\n## License\n\nNSData+CommonCrypto is Copyright (c) 2008-2009, Jim Dovey\n\nAESCrypt is Copyright (c) 2012 Gurpartap Singh\n\nSee LICENSE for license terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2FAESCrypt-ObjC","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGurpartap%2FAESCrypt-ObjC","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2FAESCrypt-ObjC/lists"}