Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ne-sachirou/stream_hash
Stream into SHA1, SHA2, SHA3, BLAKE2, RIPEMD-160 hash. (Hash algorithms which Erlang is supporting.)
https://github.com/ne-sachirou/stream_hash
blake2 elixir ripemd160 sha1 sha2 sha3
Last synced: 4 days ago
JSON representation
Stream into SHA1, SHA2, SHA3, BLAKE2, RIPEMD-160 hash. (Hash algorithms which Erlang is supporting.)
- Host: GitHub
- URL: https://github.com/ne-sachirou/stream_hash
- Owner: ne-sachirou
- License: gpl-3.0
- Created: 2017-06-25T15:05:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-30T01:57:54.000Z (over 1 year ago)
- Last Synced: 2024-10-30T16:56:28.442Z (15 days ago)
- Topics: blake2, elixir, ripemd160, sha1, sha2, sha3
- Language: Elixir
- Homepage:
- Size: 76.2 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Actions Status](https://github.com/ne-sachirou/stream_hash/workflows/test/badge.svg)](https://github.com/ne-sachirou/stream_hash/actions)
[![Coverage Status](https://coveralls.io/repos/github/ne-sachirou/stream_hash/badge.svg)](https://coveralls.io/github/ne-sachirou/stream_hash)
[![Hex.pm](https://img.shields.io/hexpm/v/stream_hash.svg)](https://hex.pm/packages/stream_hash)# StreamHash
Stream into SHA1, SHA2, SHA3, BLAKE2, RIPEMD-160 hash. (Hash algorithms which Erlang is supporting.)
```elixir
"test/fixture/xyzxyz.txt"
|> File.stream!
|> StreamHash.hash(:sha512)
|> Enum.into("")# <<215, 133, 241, 243, 115, 159, 59, 127, 111, 242, 140, 106, 171, 211, 130, 48,
# 174, 198, 241, 236, 195, 112, 105, 150, 106, 133, 78, 249, 2, 178, 132, 254,
# 50, 181, 85, 46, 183, 97, 187, 7, 38, 17, 26, 188, 232, 143, 152, 210, 71, 54,
# 245, 48, 107, 70, 180, 43, 96, 26, 69, 90, 17, 156, 111, 65>>
```[Docs](https://hexdocs.pm/stream_hash/).
## Installation
Add `stream_hash` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:stream_hash, "~> 0.3"}]
end
```