pub struct PageCrypt { /* private fields */ }
Expand description
PageCrypt implementation.
Implementations§
Source§impl PageCrypt
impl PageCrypt
Sourcepub fn builder() -> PageCryptBuilder
pub fn builder() -> PageCryptBuilder
Create a new PageCryptBuilder
.
Sourcepub fn from_hmac(rounds: u32, salt: [u8; 32], hmac: [u8; 32]) -> Self
pub fn from_hmac(rounds: u32, salt: [u8; 32], hmac: [u8; 32]) -> Self
Create a new PageCrypt
from hmac.
Sourcepub fn encrypt_html(&self, html: &[u8]) -> Result<String>
pub fn encrypt_html(&self, html: &[u8]) -> Result<String>
Encrypt HTML.
Sourcepub fn encrypt_js(&self, js: &[u8]) -> Result<String>
pub fn encrypt_js(&self, js: &[u8]) -> Result<String>
Encrypt JS.
Auto Trait Implementations§
impl Freeze for PageCrypt
impl RefUnwindSafe for PageCrypt
impl Send for PageCrypt
impl Sync for PageCrypt
impl Unpin for PageCrypt
impl UnwindSafe for PageCrypt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more