Function mysql_common::crypto::encrypt
source · pub fn encrypt(pass: &[u8], key: &[u8]) -> Vec<u8> ⓘ
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.