nycto / hasher Goto Github PK
View Code? Open in Web Editor NEWA small Scala library for easily generating hashes (md5, sha1, sha256, sha512, crc32, bcrypt, hmacs, pbkdf2)
License: MIT License
A small Scala library for easily generating hashes (md5, sha1, sha256, sha512, crc32, bcrypt, hmacs, pbkdf2)
License: MIT License
Would it be possible to add scala.js support?
How I can do something like:
val src = Source.fromFile("data.csv")
val currentHash = Hasher(src).crc32.hex
without empty my source iterator?. What's the correct way to calculate a Source's hash?
Hello.
Dependency repository is not available.
[info] Resolving com.roundeights#hasher_2.10;1.0.0 ...
[error] SERVER ERROR: Internal Server Error url=http://maven.spikemark.net/roundeights/com/roundeights/hasher_2.10/1.0.0/hasher_2.10-1.0.0.pom
[warn] module not found: com.roundeights#hasher_2.10;1.0.0
Thanks
This is more a question than an issue. Is the library published somewhere? i.e. can I use sbt to register it?
If not, what way do you recommend to add it as a project dependency?
Thanks for sharing Hasher!
There is an exception
RuntimeException: java.lang.NoClassDefFoundError: org/mindrot/jbcrypt/BCrypt
when I try to run
import com.roundeights.hasher.Implicits._
...
println("Salted BCrypt: " + hashMe.salt("sweet").bcrypt)
I fixed it by adding
libraryDependencies += "org.mindrot" % "jbcrypt" % "0.4"
in build.sbt
The repository you have listed in the setup instructions for Hasher does not seem to be hosted anymore.
I am having several failures when testing on Windows. Is that expected? I have seen AppVeyor being used to test on Windows. Have you considered that?
[info] Total for specification AlgoTest
[info] Finished in 100 ms
[info] 682 examples, 128 failures, 0 error
[info]
[info] ScalaCheck
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[error] Failed: Total 1023, Failed 180, Errors 0, Passed 843
[error] Failed tests:
[error] test.roundeights.hasher.AlgoTest
[error] test.roundeights.hasher.TapTest
[error] (test:test) sbt.TestsFailedException: Tests unsuccessful
Hi!
Thank you for your work.
I am trying to use this library to SHA512 sign a string.
One issue is that there is no function (only hmacSha256 afaik), but even when i add it i still have issues. So the issue is that the key is a string, but in my case it's a byte[] and i cant just convert my byte[] to String to use it as a key. Would it be possible to add another method that takes byte[] as a key?
Leo
Do you plan adding ECDSA implementation in Hasher lib ?
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm
https://blog.cloudflare.com/ecdsa-the-digital-signature-algorithm-of-a-better-internet/
I am trying to install a script but throws this error.
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.roundeights#hasher_2.11;1.2.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
http://maven.spikemark.net/roundeights
gives 404
Is there any reason for Algo
being package private? In this case, how could I implement a new one?
The README indicates that 1.2.1 is the latest release but it seems that only 1.2.0 is available.
Please provide version for Scala 2.13.
http://maven.spikemark.net/roundeights is returning a 404. Am I missing something?
Solved: missed this -- #8
Please publish the lib in any maven repo (for instance SonaType) as need to publish local makes it harder to use the lib in distributed projects. Please also update to sbt 0.13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.