diff --git a/README.md b/README.md index 3aee391..3b64139 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ Originally developed for [spring-data-mongodb-encrypt](https://github.com/bolcom Add dependency: ```xml - - com.bol - cryptvault - 1.0.2 - + + com.bol + cryptvault + 1.0.2 + ``` And add the following to your `application.yml`: @@ -41,15 +41,15 @@ And you're done! Example usage: ```java - @Autowired CryptVault cryptVault; +@Autowired CryptVault cryptVault; - // encrypt - byte[] encrypted = cryptVault.encrypt("rock".getBytes()); +// encrypt +byte[] encrypted = cryptVault.encrypt("rock".getBytes()); - // decrypt - byte[] decrypted = cryptVault.decrypt(encrypted); - - new String(decrypted).equals("rock"); // true +// decrypt +byte[] decrypted = cryptVault.decrypt(encrypted); + +new String(decrypted).equals("rock"); // true ``` ## Manual configuration