{"id":41758981,"url":"https://github.com/ream88/mongoid-encrypted_string","last_synced_at":"2026-01-25T02:05:44.636Z","repository":{"id":6229669,"uuid":"7461240","full_name":"ream88/mongoid-encrypted_string","owner":"ream88","description":"Encrypted string type for Mongoid.","archived":false,"fork":false,"pushed_at":"2013-05-28T20:39:01.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-13T21:57:00.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"mariouher.com/mongoid-encrypted_string","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ream88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-05T23:15:12.000Z","updated_at":"2016-01-11T21:33:32.000Z","dependencies_parsed_at":"2022-09-09T02:22:18.208Z","dependency_job_id":null,"html_url":"https://github.com/ream88/mongoid-encrypted_string","commit_stats":null,"previous_names":["haihappen/mongoid-encrypted_string"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ream88/mongoid-encrypted_string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-encrypted_string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-encrypted_string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-encrypted_string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-encrypted_string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ream88","download_url":"https://codeload.github.com/ream88/mongoid-encrypted_string/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-encrypted_string/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28741649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"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":"2026-01-25T02:05:44.577Z","updated_at":"2026-01-25T02:05:44.628Z","avatar_url":"https://github.com/ream88.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongoid-encrypted_string\n\n`Mongoid::EncryptedString` defines an encrypted string type for your Mongoid apps, which provides you a simple way to store encrypted information in your database.\n\n`Mongoid::EncryptedString` uses `Gibberish::AES` internally to encrypt your data.\n\n## Installation\n\nIn your Gemfile:\n\n```ruby\ngem 'mongoid-encrypted_string'\n```\n\nAdd an initializer:\n\n```ruby\nMongoid::EncryptedString.config.key = 'random'\n```\n\n## Usage\n\n```ruby\nclass Document\n  include Mongoid::Document\n\n  field :string, type: Mongoid::EncryptedString\nends\n```\n\n```ruby\ndocument = Document.create string: 'secret'\ndocument.attributes =\u003e {\"_id\"=\u003e\"50e92506372fa248a6000002\",\n \"string\"=\u003e\n  \"U2FsdGVkX19oLIvsPM0WtUiqyFwp/TPOk5x5t/5S5q4qDkGqcoWy7FKtkxvj\\nicT5\\n\" }\n```\n\nIf you want to use `EncryptedString` directly instead of `Mongoid::EncryptedString`:\n\n```ruby\nclass Document\n  include Mongoid::Document\n\n  field :string, type: EncryptedString\nend\n```\n\n… your Gemfile must include a additional require statement:\n\n```ruby\ngem 'mongoid-encrypted_string', require: 'mongoid/encrypted_string/global'\n```\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\n## Copyright\n\n(The MIT license)\n\nCopyright (c) 2013 Mario Uher\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fream88%2Fmongoid-encrypted_string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fream88%2Fmongoid-encrypted_string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fream88%2Fmongoid-encrypted_string/lists"}