Skip to content

Instantly share code, notes, and snippets.

View majindageta's full-sized avatar

davide.ricci majindageta

View GitHub Profile
@majindageta
majindageta / example.dart
Last active November 29, 2022 06:45 — forked from jokecamp/example.dart
Dart HMAC SHA 256 Example code
import 'dart:html';
import 'dart:convert';
import 'package:crypto/crypto.dart';
void main() {
String secret = 'secret';
String message = 'Message';
List<int> secretBytes = utf8.encode(secret);