chanced / navajo

A cryptographic toolkit for Rust
Apache License 2.0
1 stars 0 forks source link

navajo: auto-detect whether base64 values are padded #49

Open chanced opened 1 year ago

chanced commented 1 year ago

Check if the value ends in "=". If so, use base64::engine::general_purpose::URL_SAFE rather than URL_SAFE_NO_PAD

Code needing to be updated: