Skip to content

Instantly share code, notes, and snippets.

View PWrzesinski's full-sized avatar

Przemysław Wrzesiński PWrzesinski

View GitHub Profile
// I put this together from 2 sources:
// - https://github.com/cyrildever/feistel-cipher
// - https://stackoverflow.com/a/12590064/2786606
//
// In particular, Daniel Vérité wrote a great answer on SO.
//
// I save this for myself, there are no guarantees about correctness, quality, or anything else.
import 'dart:convert';
import 'package:crypto/crypto.dart';