9 lines
199 B
Dart
9 lines
199 B
Dart
|
import 'dart:convert';
|
||
|
import 'package:crypto/crypto.dart';
|
||
|
|
||
|
String hashPassword(String pw) {
|
||
|
var bytes = utf8.encode(pw);
|
||
|
final password = sha256.convert(bytes).toString();
|
||
|
return password;
|
||
|
}
|