List<int> sha256(raw) { var byte; if (raw is List<int>) byte = raw; else if (raw is String) byte = utf8.encode(raw); return crypto.sha256.convert(byte).bytes; }