AlloVince
V2EX  ›  问与答

同一文件分别用PHP/Python/Javascript读取并计算MD5,结果均不同,请教原理及解决方法

  •  
  •   AlloVince · Jul 24, 2013 · 4311 views
    This topic created in 4858 days ago, the information mentioned may be changed or developed.
    5 replies  •  1970-01-01 08:00:00 +08:00
    est
    est
    Jul 24, 2013❤️1
    1
    要么是换行问题,要么是文本 二进制模式问题,要么是结尾换行符问题。
    clowwindy
    clowwindy
    Jul 24, 2013 via iPhone
    2
    我猜楼主用的是 Windows
    AlloVince
    AlloVince
    OP
    Jul 24, 2013
    3
    @clowwindy 是windows
    clowwindy
    clowwindy
    Jul 24, 2013 via iPhone
    4
    打开文件的时候模式用 rb 吧
    msg7086
    msg7086
    Jul 24, 2013
    5
    只知道PHP是二进制安全的。别的就难说了。js那个最后几行没看懂。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:20 · PVG 11:20 · LAX 19:20 · JFK 22:20
    ♥ Do have faith in what you're doing.