Android, calculating SHA-1 hash from file, fastest algorithm

前端 未结 2 835
予麋鹿
予麋鹿 2021-02-05 17:58

I have a problem with SHA-1 performance on Android. In C# I get calculated hash in about 3s, same calculation for Android takes about 75s. I think the problem is in reading oper

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 18:10

    If I were you I would use the JNI like this guy did and get the speed up that way. This is exactly what the C interface was made for.

提交回复
热议问题