ariwaranosai / scala-js-hashes   0.1.0

MIT License GitHub

js-hashes facade types for Scala.js

Scala versions: 2.11
Scala.js versions: 0.6

scala-js-hashes

Build Status Scala.js

js-hashes facade types for Scala.js

scala-js-hashes

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.

Usage

Add the following to your sbt build definition:

libraryDependencies += "xyz.ariwaranosai" %%% "scalajs-hashes" % "0.1.0"

include javascript

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"

Hashes

scalajs-hashes provides two ways to get hashes, please follow those testcase.

License

scala-js-hashes is released under MIT license. See LICENSE file.