Skip to content

b1naryth1ef/shaker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

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;

EncryptedBoxMessage message = alice.encrypt("Hey Bob, I think you're sexy!", bob);
bob.decrypt(message, alice); // "Hey Bob, I think you're sexy!"

Signing Data

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

SignedMessage message = alice.sign("This is definitely alice talking!");
message.signedBy(bob); // true

About

A libsodium wrapper for D

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages