XTEA cryptography algorithm implementation in D (eXtended Tiny Encryption Algorithm)
D
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
source/xtea
.gitignore
.travis.yml
LICENSE
README.md
dub.json

README.md

xtea-d Build Status Coverage Status version downloads

XTEA cryptography algorithm implementation in D (eXtended Tiny Encryption Algorithm)

usage:

This is a dub library (http://code.dlang.org/about). Just add dependancy to your package.json:

{
	...
	"dependencies": {
		"xtea-d": "~>0.1.0",
		...
	}
}

A simple source code example is in the provided app.d and looks like this:

import xtea.XteaCrypto;

void main()
{ 
	auto crypto = XTEA([1,2,3,4], 64);

	auto data = [0,1,2,3,4,5,6,7];

	writefln("data:\t%s",data);
	
	crypto.Encrypt(data);

	writefln("encrypted:\t%s",data);
}