encryption: small api improvement, added empty unit test for it for todo