https://github.com/gmcabrita/murmur
:speech_balloon: An implementation of the non-cryptographic hash Murmur3
https://github.com/gmcabrita/murmur
elixir hash-algorithm hashing murmur3
Last synced: 25 days ago
JSON representation
:speech_balloon: An implementation of the non-cryptographic hash Murmur3
- Host: GitHub
- URL: https://github.com/gmcabrita/murmur
- Owner: gmcabrita
- License: mit
- Archived: true
- Created: 2014-10-21T15:11:02.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T19:17:18.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T11:52:52.691Z (about 1 month ago)
- Topics: elixir, hash-algorithm, hashing, murmur3
- Language: Elixir
- Homepage:
- Size: 88.9 KB
- Stars: 39
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A pure Elixir implementation of the non-cryptographic hash Murmur3. (Algorithms and Data structures)
- fucking-awesome-elixir - murmur - A pure Elixir implementation of the non-cryptographic hash Murmur3. (Algorithms and Data structures)
- awesome-elixir - murmur - A pure Elixir implementation of the non-cryptographic hash Murmur3. (Algorithms and Data structures)
README
Murmur
======[](https://github.com/gmcabrita/murmur/actions)
[](https://coveralls.io/r/gmcabrita/murmur?branch=master)
[](https://hexdocs.pm/murmur)
[](https://hex.pm/packages/murmur)
[](https://github.com/gmcabrita/murmur/blob/master/LICENSE)Murmur is a pure Elixir implementation of the non-cryptographic hash [Murmur3](https://code.google.com/p/smhasher/wiki/MurmurHash3).
It aims to implement the x86_32bit, x86_128bit and x64_128bit variants.
# Usage
Add Murmur as a dependency in your mix.exs file.
```elixir
def deps do
[{:murmur, "~> 1.0"}]
end
```When you are done, run `mix deps.get` in your shell to fetch and compile Murmur.
# Examples
```iex
iex> Murmur.hash_x86_32("b2622f5e1310a0aa14b7f957fe4246fa", 2147368987)
3297211900iex> Murmur.hash_x86_128("some random data")
5586633072055552000169173700229798482iex> Murmur.hash_x64_128([:yes, :you, :can, :use, :any, :erlang, :term!])
300414073828138369336317731503972665325
```