We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` import 'package:ntcdcrypto/ntcdcrypto.dart';
void main() { const secret = "бар"; // wrong decoded // const secret = "бор"; // fails decode final sss = SSS(); final shards = sss.create(2, 3, secret, true);
print("secret.length: ${secret.length}, secret: $secret"); print(shards);
var s1 = sss.combine(shards.sublist(0, 2), true); print("secret.length: ${s1.length}, secret: $s1");
var s2 = sss.combine(shards.sublist(1), true); print("secret.length: ${s2.length}, secret: $s2");
var s3 = sss.combine(shards, true); print("secret.length: ${s3.length}, secret: $s3"); } `
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
`
import 'package:ntcdcrypto/ntcdcrypto.dart';
void main() {
const secret = "бар"; // wrong decoded
// const secret = "бор"; // fails decode
final sss = SSS();
final shards = sss.create(2, 3, secret, true);
print("secret.length: ${secret.length}, secret: $secret");
print(shards);
var s1 = sss.combine(shards.sublist(0, 2), true);
print("secret.length: ${s1.length}, secret: $s1");
var s2 = sss.combine(shards.sublist(1), true);
print("secret.length: ${s2.length}, secret: $s2");
var s3 = sss.combine(shards, true);
print("secret.length: ${s3.length}, secret: $s3");
}
`
The text was updated successfully, but these errors were encountered: