sss256 library

@author nghiatc @since Mar 16, 2020

@author alexandrim0@gmail.com @since Aug 16, 2022

Functions

restoreSecret({required List<String> shares, bool isBase64 = true}) String
Takes a string array of shares encoded in Base64 or Hex created via Shamir's Algorithm Note: the polynomial will converge if the specified minimum number of shares or more are passed to this function. Passing thus does not affect it Passing fewer however, simply means that the returned secret is wrong.
splitSecret({required int treshold, required int shares, required String secret, bool isBase64 = true, BigIntGeneretor generateRandomNumber = generateRandomNumber}) List<String>
Returns a new array of secret shares (encoding x,y pairs as Base64 or Hex strings) created by Shamir's Secret Sharing Algorithm requiring a minimum number of share to recreate, of length shares, from the input secret raw as a string.