Skip to content

jfairbairn/rubytea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Usage

key = TEA::Key.new(1234, 4567, 2345, 3456)
data = "bobafett".unpack("N*") # (needs to be a multiple of 4 bytes long)

TEA.encrypt!(data, key) # encrypts your integer array in place; returns it for convenience

TEA.decrypt!(data, key) # in place too
data.pack("N*") # => "bobafett"

About

A wrapper around the XXTEA block encryption algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published