You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Davide Giannella <gi...@gmail.com> on 2014/06/12 18:20:23 UTC

generating a SHA1

Hello everyone,

as part of OAK-1717 I'm implementing a strategy where I need to sha1 the
incoming path.

I'm currently generating the SHA1 as following

http://goo.gl/0kBM8y

that is a different result for example from the deprecated
Hashing.sha1().hashString().

I think that generating the SHA1 from the byte[] giving the UTF-8 is the
right way but rather have your opinion if you see anything wrong on this
side?

Cheers
Davide