On Saturday, 2 December 2023 at 15:30:39 UTC, zoujiaqing wrote: > ```D > string appKey = > "11111111111111111111111111111111111111111111111111111"; > ubyte[1024] data = cast(ubyte[])(appKey.dup[0..$]); > sha256.put(data); Your data has garbage at the end; try sha256.put(data[0..appKey.length])