SHA1 hashing in Delphi XE

前端 未结 4 595
醉梦人生
醉梦人生 2020-12-09 06:24

I\'m in the process of implementing XML digital signatures. I\'m starting with little steps, so right now I want to solve the problem of SHA-1 hashing.

There are lot

4条回答
  •  Happy的楠姐
    2020-12-09 07:05

    My Cygwin command-prompt tells me it is indeed Unicode that's confusing you:

    ~$ printf 'a\0b\0c\0' | sha1sum
    9f04f41a848514162050e3d68c1a7abb441dc2b5 *-
    ~$ printf 'abc' | sha1sum
    a9993e364706816aba3e25717850c26c9cd0d89d *-
    

提交回复
热议问题