Ask Your Question
0

Need strong SHA1 ETag support

asked 2012-12-19 14:34:02 -0600

Hi Sir

By reading the Swift API documents, the ETag was MD5 checksum, I am designing a global deduplication system, all chunks are already checked by strong SHA1 algorithm, how can I specify the ETag checksum algorithm to SHA1?

I don't want to MD5 a chunk which already checked by strong SHA1.

Thanks.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2012-12-20 00:42:58 -0600

Changing the swift code will solve my question.

Would it's possible that Swift can be configured to use SHA1 for ckecksum officially? MD5 collisions already found.

edit flag offensive delete link more
0

answered 2012-12-19 16:39:34 -0600

cthier gravatar image

To support this nativly in swift, the hashing code in swift would have to be refactored a bit. If you just need to store the sha-1 hash with the objects, you can store it in the object metadata.

edit flag offensive delete link more
0

answered 2012-12-20 01:04:14 -0600

notmyname gravatar image

There are no plans to change the hashing algorithm in Swift. Swift does not use md5 for cryptographic security. In the case you are looking at, the problem to solve is only to ensure that the bits on disk and the bits transferred on the network are correct. In that case, md5 is quite sufficient and has the added benefits of being both widely available and fast enough.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-12-19 14:34:02 -0600

Seen: 79 times

Last updated: Dec 20 '12