{"id":25585835,"url":"https://github.com/pawandubey/fnv-hash","last_synced_at":"2025-04-12T20:42:22.498Z","repository":{"id":56847329,"uuid":"91241332","full_name":"pawandubey/fnv-hash","owner":"pawandubey","description":"Ruby Implementation of the FNV (Fowler-Noll-Vo) Non-Cryptographic Hash Algorithms","archived":false,"fork":false,"pushed_at":"2017-05-17T10:54:43.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T15:23:34.588Z","etag":null,"topics":["fnv","fnv-1a","hash-algorithm","non-cryptographic","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pawandubey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-14T12:18:08.000Z","updated_at":"2023-10-03T00:49:38.000Z","dependencies_parsed_at":"2022-09-12T11:20:10.338Z","dependency_job_id":null,"html_url":"https://github.com/pawandubey/fnv-hash","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/pawandubey%2Ffnv-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawandubey%2Ffnv-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawandubey%2Ffnv-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawandubey%2Ffnv-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawandubey","download_url":"https://codeload.github.com/pawandubey/fnv-hash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631669,"owners_count":21136554,"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":["fnv","fnv-1a","hash-algorithm","non-cryptographic","ruby"],"created_at":"2025-02-21T07:26:26.149Z","updated_at":"2025-04-12T20:42:22.479Z","avatar_url":"https://github.com/pawandubey.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/pawandubey/fnv-hash.svg?branch=master)](https://travis-ci.org/pawandubey/fnv-hash)  [![codecov](https://codecov.io/gh/pawandubey/fnv-hash/branch/master/graph/badge.svg)](https://codecov.io/gh/pawandubey/fnv-hash)  [![Gem Version](https://badge.fury.io/rb/fnv-hash.svg)](https://badge.fury.io/rb/fnv-hash)\n\n# Fnv::Hash\n\nPure Ruby implementation of the [Fowler-Noll-Vo Hash Algorithms](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'fnv-hash'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fnv-hash\n\n## Usage\n\nThis gem supports geting both `fnv-1` and `fnv-1a` hashes for an item. Each of these variations also supports both 32 and 64 bit versions.\n\n```ruby\n# For FNV-1\nhash = Fnv::Hash.fnv_1(item, size: 32)\n\nhash_64 = Fnv::Hash.fnv_1(item, size: 64)\n\n# For FNV-1a\nhash = Fnv::Hash.fnv_1a(item, size: 32)\n\nhash_64 = Fnv::Hash.fnv_1a(item, size: 64)\n\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/pawandubey/fnv-hash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nCopyright 2017 Pawan Dubey\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawandubey%2Ffnv-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawandubey%2Ffnv-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawandubey%2Ffnv-hash/lists"}