librage 1.1.0

A safe, simple, and complete Rust wrapper for the rage (age) encryption library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::handler::error::LibrageError;
use std::path::Path;

pub fn read_identity_file(
    path: impl AsRef<Path>,
) -> Result<Vec<Box<dyn age::Identity>>, LibrageError> {
    crate::core::utils::read_identities_from_file(path)
}

pub fn read_identity_file_with_passphrase(
    path: impl AsRef<Path>,
    passphrase: Option<&str>,
) -> Result<Vec<Box<dyn age::Identity>>, LibrageError> {
    crate::core::utils::read_identities_from_file_with_passphrase(path, passphrase)
}