Skip to content
TEA implementation in Elixir
Elixir
Latest commit 96b01f0 May 6, 2015 @keichan34 Merge pull request #1 from lowks/master
Simplify travis
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
mix.exs
mix.lock

README.md

TEA

Build Status

A TEA (Tiny Encryption Algorithm) implemented in pure Elixir.

Usage

Encryption

text = <<0 :: unsigned-64>>
key  = <<0 :: unsigned-128>>
TEA.encrypt text, key
=> <<65, 234, 58, 10, 148, 186, 169, 64>>

Decryption

ciphertext = <<65, 234, 58, 10, 148, 186, 169, 64>>
key        = <<0 :: unsigned-128>>
TEA.decrypt ciphertext, key
=> <<0, 0, 0, 0, 0, 0, 0, 0>>
Something went wrong with that request. Please try again.