pub fn encode_base64(src: &[u8]) -> Result<String, Error>Expand description
Encode src as unpadded standard Base64, the alphabet PHC strings use.
Same dispatch as to_base64: SIMD when src is at least one vector
long (16 bytes on x86, 24 on aarch64), scalar below that.
use argon2_rust::encode_base64;
assert_eq!(encode_base64(b"somesalt")?, "c29tZXNhbHQ");ยงErrors
Error::MemoryAllocationError if the output buffer cannot be allocated.