shaker ~stable

A wrapper around libsodium


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Shaker

A D wrapper around libsodium for simple encryption, signing, and other awesome cryptoness. This project is currently in heavy development and I promise to break it often (until a 1.0 like release).

Usage

Shaker provides two main avenues for using it, the first being a lightweight wrapper over the basics of libsodium allowing you to use it in a very object-oriented way, not present in the original libsodium library. However, for those that have a more custom use case or want to build out object-oriented primitives themselves, Shaker also exports all of the D-compatibile functions directly from libsodium.

D-like OO Usage

Encrypting Data

auto alice = new BoxKeyPair;
auto bob = new BoxKeyPair;

EncryptedMessage message = alice.encrypt("Hey Bob, I think your sexy!", bob);
bob.decrypt(message, alice); // "Hey Bob, I think your sexy!"

Signing Data

auto alice = new SignKeyPair;
auto bob = new SignKeyPair;

SignedMessage message = alice.sign("This is definitly alice talking!");
message.signedBy(bob); // true
Authors:
  • Andrei Zbikowski
Dependencies:
none
Versions:
0.0.8 2017-Feb-13
0.0.7 2016-Feb-20
0.0.6 2014-Dec-27
0.0.5 2014-Dec-26
0.0.4 2014-Dec-26
Show all 10 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 1175 downloads total

Score:
1.0
Short URL:
shaker.dub.pm