selfprivacy.org.app/lib/utils/crypto.dart
2021-01-06 18:35:57 +01:00

11 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();
}