deltachat::push

Function encrypt_device_token

source
pub(crate) fn encrypt_device_token(device_token: &str) -> Result<String>
Expand description

Encrypts device token with OpenPGP.

The result is base64-encoded and not ASCII armored to avoid dealing with newlines.