js-hashes facade types for Scala.js
jshashes is lightweight library implementing the most extended cryptographic hash function algorithms in pure JavaScript (ES5 compliant).You can find more from jshashes.
scalajs-hashes provide jshashes facade type for scalajs programs since there are few hashlib in native scala adapted to scalajs.
Add the following to your sbt build definition:
libraryDependencies += "xyz.ariwaranosai" %%% "scalajs-hashes" % "0.1.0"
hashes.js file itself is also needed. You can include it in your html file. Another way is include it in the final jsdeps.js by add the desired version to jdDependencies,e.g.,
jsDependencies += "org.webjars.bower" % "jshashes" % "1.0.5" / "1.0.5/hashes.min.js"
scalajs-hashes provides two ways to get hashes, please follow those testcase.
scala-js-hashes is released under MIT license. See LICENSE file.