Pads string to length with zeros.
string
length
static Uint8List paddedByteArrayString(String string, int length) { return Util.paddedByteArray(Uint8List.fromList(utf8.encode(string)), length); }