Skip to content
New issue

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

fails with non Latin symbols (Cyrillic, for example) #2

Open
alexandrim0 opened this issue Jun 21, 2022 · 0 comments · May be fixed by #3
Open

fails with non Latin symbols (Cyrillic, for example) #2

alexandrim0 opened this issue Jun 21, 2022 · 0 comments · May be fixed by #3

Comments

@alexandrim0
Copy link

`
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");
}
`

@alexandrim0 alexandrim0 linked a pull request Jul 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant