README.md (tink-1.6.0) | : | README.md (tink-1.6.1) | ||
---|---|---|---|---|
# Message Encryption for Web Push | # Message Encryption for Web Push | |||
This Tink app is an implementation of [RFC 8291 - Message Encryption for Web | This Tink app is an implementation of [RFC 8291 - Message Encryption for Web | |||
Push](https://tools.ietf.org/html/rfc8291). | Push](https://tools.ietf.org/html/rfc8291). | |||
The most recent release is | The most recent release is | |||
[1.6.0](https://github.com/google/tink/releases/tag/v1.6.0), released | [1.6.1](https://github.com/google/tink/releases/tag/v1.6.1), released | |||
2021-05-17. API docs can be found | 2021-07-12. API docs can be found | |||
[here](https://google.github.io/tink/javadoc/apps-webpush/1.6.0). | [here](https://google.github.io/tink/javadoc/apps-webpush/1.6.1). | |||
## Installation | ## Installation | |||
To add a dependency using Maven: | To add a dependency using Maven: | |||
```xml | ```xml | |||
<dependency> | <dependency> | |||
<groupId>com.google.crypto.tink</groupId> | <groupId>com.google.crypto.tink</groupId> | |||
<artifactId>apps-webpush</artifactId> | <artifactId>apps-webpush</artifactId> | |||
<version>1.6.0</version> | <version>1.6.1</version> | |||
</dependency> | </dependency> | |||
``` | ``` | |||
To add a dependency using Gradle: | To add a dependency using Gradle: | |||
``` | ``` | |||
dependencies { | dependencies { | |||
implementation 'com.google.crypto.tink:apps-webpush:1.6.0' | implementation 'com.google.crypto.tink:apps-webpush:1.6.1' | |||
} | } | |||
``` | ``` | |||
## Encryption | ## Encryption | |||
```java | ```java | |||
import com.google.crypto.tink.HybridEncrypt; | import com.google.crypto.tink.HybridEncrypt; | |||
import java.security.interfaces.ECPublicKey; | import java.security.interfaces.ECPublicKey; | |||
ECPublicKey reicipientPublicKey = ...; | ECPublicKey reicipientPublicKey = ...; | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added |