Skip to content

Use hmac and doc_id to generate secret for symmetric encryption

Like so:

Get doc’ from doc

doc  = get_doc(doc_id)
doc' = encrypt(doc, hmac(doc_id, secret))

(from redmine: created on 2013-01-16, closed on 2013-01-28)