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"
jfairbairn/rubytea
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A wrapper around the XXTEA block encryption algorithm
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published