{"id":13849537,"url":"https://github.com/Gurpartap/aescrypt","last_synced_at":"2025-07-12T16:32:46.918Z","repository":{"id":4128365,"uuid":"5240110","full_name":"Gurpartap/aescrypt","owner":"Gurpartap","description":"A simple and opinionated AES encrypt / decrypt Ruby gem that just works.","archived":true,"fork":false,"pushed_at":"2017-04-20T08:36:14.000Z","size":112,"stargazers_count":161,"open_issues_count":12,"forks_count":51,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-14T13:13:51.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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:26:16.000Z","updated_at":"2024-09-03T04:45:37.000Z","dependencies_parsed_at":"2022-09-17T16:50:42.843Z","dependency_job_id":null,"html_url":"https://github.com/Gurpartap/aescrypt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2Faescrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2Faescrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2Faescrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2Faescrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gurpartap","download_url":"https://codeload.github.com/Gurpartap/aescrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829364,"owners_count":17530663,"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","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-08-04T19:01:21.456Z","updated_at":"2024-11-22T01:31:01.245Z","avatar_url":"https://github.com/Gurpartap.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# AESCrypt - Simple AES encryption / decryption for Ruby\n\nAESCrypt is a simple to use, opinionated AES encryption / decryption Ruby gem 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 Objective-C is available at http://github.com/Gurpartap/AESCrypt-ObjC.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'aescrypt'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install aescrypt\n\n## Usage\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\n## Advanced usage\n\nEncrypting\n\n    encrypted_data = encrypt_data(data, key, iv, cipher_type)\n\nDecrypting\n\n    decrypted_data = decrypt_data(encrypted_data, key, iv, cipher_type)\n\n## Corresponding usage in Objective-C\n\nThe AESCrypt Objective-C class, available at https://github.com/Gurpartap/AESCrypt-ObjC, understands what you're talking about in your Ruby 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 AESCrypt Objective-C class:\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\nSee the Objective-C class README at http://github.com/Gurpartap/AESCrypt-ObjC for more details.\n\n## License\n\nCopyright (c) 2012 Gurpartap Singh\n\nThe encrypt_data and decrypt_data methods are Copyright (c) 2007 Brent Sowers and have been included in the gem with prior permission. Thanks Brent! :)\n\nSee LICENSE for license terms.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2Faescrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGurpartap%2Faescrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2Faescrypt/lists"}