xtea-d

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


Keywords
library, crypto
License
MIT
Install
dub fetch xtea-d --version 0.2.1

Documentation

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);
}