Skip to content

reactormonk/cryptobits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto-bits

Simple crypto for signing auth tokens.

Sample usage

val key = PrivateKey(scala.io.Codec.toUTF8(string))
val crypto = CryptoBits(key)
val clock = Clock.systemUTC()
// or anything else for the nonce, should be something different each time.
val signed = crypto.signToken(message, clock.millis.toString)
val data = crypto.validateSignedToken(signed)

About

Simple crypto for signing auth tokens.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages