| Crates.io | sjcl |
| lib.rs | sjcl |
| version | 1.0.0 |
| created_at | 2021-03-28 15:07:20.9787+00 |
| updated_at | 2021-05-22 12:21:56.125749+00 |
| description | Library which supports decrypting data that was encrypted using SJCL |
| homepage | https://github.com/Milchdealer/sjcl-rust |
| repository | https://github.com/Milchdealer/sjcl-rust |
| max_upload_size | |
| id | 374691 |
| size | 32,185 |
Library which supports decrypting and encrypting SJCL compatible blocks.
AES-CCMAES-OCB2 is deprecated and not supporteduse sjcl::decrypt_raw;
let data = "{\"iv\":\"nJu7KZF2eEqMv403U2oc3w==\", \"v\":1, \"iter\":10000, \"ks\":256, \"ts\":64, \"mode\":\"ccm\", \"adata\":\"\", \"cipher\":\"aes\", \"salt\":\"mMmxX6SipEM=\", \"ct\":\"VwnKwpW1ah5HmdvwuFBthx0=\"}".to_string();
let password_phrase = "abcdefghi".to_string();
let plaintext = String::from_utf8(decrypt_json(data, password_phrase, None).unwrap())?;