Тема: a33ik: MD5 hashing
Показать сообщение отдельно
Старый 28.08.2024, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
a33ik: MD5 hashing
Источник: http://daxonline.org/1964-md5-hashing.html
==============


str signature = 'some string';System.Byte[] byteArray = System.Text.Encoding::get_UTF8().GetBytes(signature);System.IO.MemoryStream stream = new System.IO.MemoryStream(byteArray);System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5::Create();byteArray = md5.ComputeHash(stream);signature = System.Text.Encoding::get_UTF8().GetString(byteArray);



Источник: http://daxonline.org/1964-md5-hashing.html