Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种哈希算法,它的输入是字符串,输出是二进制字符串。
例如 :
hash("abc",8) = 11001010 //8 is the output bits number
我找不到任何这样的哈希函数。
C#
string str = "Hello"; byte []arr = System.Text.Encoding.ASCII.GetBytes(str);