Skip to content

Commit

Permalink
docs: remove superfluous whitespace from README.md examples
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenakker committed Mar 13, 2024
1 parent c35a860 commit 29c6947
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Originally developed for [spring-data-mongodb-encrypt](https://github.com/bolcom
Add dependency:

```xml
<dependency>
<groupId>com.bol</groupId>
<artifactId>cryptvault</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.bol</groupId>
<artifactId>cryptvault</artifactId>
<version>1.0.2</version>
</dependency>
```

And add the following to your `application.yml`:
Expand All @@ -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
Expand Down

0 comments on commit 29c6947

Please sign in to comment.