Home

Awesome

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>>