selfprivacy.org.app/lib/utils/crypto.dart

11 lines
202 B
Dart
Raw Normal View History

2021-01-06 17:35:57 +00:00
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();
}