Function mysql_common::crypto::encrypt[][src]

pub fn encrypt(pass: &[u8], key: &[u8]) -> Vec<u8>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Helper function to encrypt mysql password using a public key loaded from a server.

It will use OAEP padding, so MySql versions prior to 8.0.5 are not supported.