3 ms·
Here is a 68 line Python implementation to encrypt and decrypt: https://github.com/ergl/sss_py/blob/master/sss/shamir.py https://github.com/ergl/sss_py/blob/mas
by erwincoumans 4y ago
Here is a 68 line Python implementation to encrypt and decrypt: https://github.com/ergl/sss_py/blob/master/sss/shamir.py https://github.com/ergl/sss_py/blob/master/sss/shamir.py
- gnull 4y agoYou could extend the decoding procedure to tolerate errors. Shamir's secret sharing is the same thing as Reed-Solomon code, so you can reuse the error-correctimg property of the latter.