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