import * as cryptex from "cryptex"; cryptex.update({ config: { keySource: "none", algorithm: "plaintext", secretEncoding: "binary", secrets: { foo: "bar" } } }); const value: Promise = cryptex.getSecret("foo", true); const decryptedValue: Promise = cryptex.decrypt("foo"); const encryptedValue: Promise = cryptex.encrypt("bar");