Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keichan34/elixir_tea
TEA implementation in Elixir
https://github.com/keichan34/elixir_tea
Last synced: about 1 month ago
JSON representation
TEA implementation in Elixir
- Host: GitHub
- URL: https://github.com/keichan34/elixir_tea
- Owner: keichan34
- License: mit
- Created: 2015-01-02T00:25:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-06T11:59:57.000Z (over 9 years ago)
- Last Synced: 2024-08-10T10:59:04.327Z (4 months ago)
- Language: Elixir
- Size: 152 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - TEA implementation in Elixir. (Cryptography)
- fucking-awesome-elixir - elixir_tea - TEA implementation in Elixir. (Cryptography)
- awesome-elixir - elixir_tea - TEA implementation in Elixir. (Cryptography)
README
TEA
===[![Build Status](https://travis-ci.org/keichan34/elixir_tea.svg?branch=master)](https://travis-ci.org/keichan34/elixir_tea)
A TEA (Tiny Encryption Algorithm) implemented in pure Elixir.
## Usage
### Encryption
```elixir
text = <<0 :: unsigned-64>>
key = <<0 :: unsigned-128>>
TEA.encrypt text, key
=> <<65, 234, 58, 10, 148, 186, 169, 64>>
```### Decryption
```elixir
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>>
```