Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a C# class for "Shamir's Secret Sharing"?

Tags:

c#

.net

security

I am trying to find a class or something that would allow me to do Shamir's Secret Sharing.

I found a program in C# that allows you to do it but it does not supply source code. I was just wondering if anyone has a class that already does what I need.

like image 905
Crash893 Avatar asked Mar 04 '09 19:03

Crash893


2 Answers

I implemented my own version of it that also uses PGP encryption. I describe the math behind it and give examples on how to use it in my blog post "Life, Death, and Splitting Secrets".

UPDATE: It's now available as a NuGet package (as well as a detailed example package)

like image 130
Jeff Moser Avatar answered Nov 18 '22 20:11

Jeff Moser


EDIT: As noted in comments, this project doesn't actually have C# source code - but I can't delete the answer now as it's been accepted. Perhaps the OP was actually content to use a wrapper after all.

SecretSharp (linked from the wikipedia article) is GPL - you can browse the code here.

like image 44
Jon Skeet Avatar answered Nov 18 '22 22:11

Jon Skeet