Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dipu-bd committed Apr 30, 2023
1 parent 5ea131e commit 7ade61d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Examples can be found inside the `example` folder.

```dart
import 'package:hashlib/hashlib.dart';
import 'package:hashlib/src/codecs_base.dart';
void main() {
var text = "Happy Hashing!";
Expand Down Expand Up @@ -164,7 +165,7 @@ void main() {
// Examples of scrypt key derivation
var scryptLittle = ScryptSecurity.little;
print("[scrypt] => ${scrypt(pw, salt, security: scryptLittle, dklen: 32)}");
print("[scrypt] => ${scrypt(pw, salt, security: scryptLittle, dklen: 24)}");
print('');
}
```
Expand Down
3 changes: 2 additions & 1 deletion example/hashlib_example.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:hashlib/hashlib.dart';
import 'package:hashlib/src/codecs_base.dart';

void main() {
var text = "Happy Hashing!";
Expand Down Expand Up @@ -75,6 +76,6 @@ void main() {

// Examples of scrypt key derivation
var scryptLittle = ScryptSecurity.little;
print("[scrypt] => ${scrypt(pw, salt, security: scryptLittle, dklen: 32)}");
print("[scrypt] => ${scrypt(pw, salt, security: scryptLittle, dklen: 24)}");
print('');
}
1 change: 1 addition & 0 deletions example/otpauth_parser.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:typed_data';

import 'package:hashlib/hashlib.dart';
import 'package:hashlib/src/codecs_base.dart';

/// Parse any otpauth URI
OTPAuth parse(String keyUri) {
Expand Down

0 comments on commit 7ade61d

Please sign in to comment.