encryptDocument

fun Storage.encryptDocument(name: String, secretKey: String): Document

Returns an encrypted Document backed by light persistence. Requires kvs-core, kvs-persistence-light, and kvs-document on the classpath.