Skip to content

A Spritz cipher implementation in pure Java.

License

Notifications You must be signed in to change notification settings

cuhsat/Spritz.java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spritz.java

A Spritz cipher implementation in pure Java.

Spritz is a RC4 redesign by Ron Rivest and Jacob Schuldt (PDF).

Exports

Encryption

  • Spritz.encrypt(text, key)
  • Spritz.encrypt(text, key, iv)

Decryption

  • Spritz.decrypt(text, key)
  • Spritz.decrypt(text, key, iv)

Hash

  • Spritz.hash(message, digest)

MAC

  • Spritz.mac(message, key, code)

PRNG

  • Spritz.random()
  • Spritz.randomSeed(seed)

License

Release into the Public Domain.