mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-11 17:24:09 +00:00
10 lines
202 B
Dart
10 lines
202 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:crypto/crypto.dart';
|
|
|
|
String convertToSha512Hash(String text) {
|
|
var bytes = utf8.encode(text);
|
|
|
|
var hash = sha512.convert(bytes);
|
|
return hash.toString();
|
|
}
|