如何以十六進制在C#中正確編碼SHA-256散列? private static string ToHex(byte[] bytes, bool upperCase)
{
StringBuilder result = new StringBuilder(bytes.Length * 2);
for (int i = 0; i < bytes.Length; i++)
我有一個帶有十六進制行的文本文件。我希望每行都轉換成jpeg.file,因爲它們是照片。我能做到這一點單獨使用binascii.a2b_hex像這樣(我已經縮短了十六進制): data = binascii.a2b_hex("FFD8FFE")
with open('image.jpg', 'wb') as image_file:
#image_file.write(data)
現