[−][src]Function r3ma_backup::import
pub fn import(
backup: &String,
password: &str
) -> Result<ThreemaBackup, &'static str>
Imports a threema backup string with a given password.
This uses the reverse process explained in this pdf to import a threema backup. This can be used to obtain your secret key.
Example
let backup = "5Z6N-JH5D-2PEK-L2Y3-Q3NY-R7KB-YNDT-HYHB-7HPB-T7NO-DJV3-CMGE-O5EO-NEG7-OJ2W-XSEJ-URDM-MHJ4-JFAN-2VCO"; let secret_key = import(&backup.to_string(), "password").unwrap().secret_key;