/// Generate md5 password hash from username and password
/// 1. Concatenate the password and username
/// 2. Hash the concatenated string
/// 3. Concatenate 'md5' in front of the MD5 hash string
/// https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html
Generate md5 password hash from username and password
1. Concatenate the password and username
2. Hash the concatenated string
3.
Generate md5 password hash from username and password 1 . Concatenate the password and username 2 . Hash the concatenated string 3 .
fn gen_md5_password(password: &str, username: &str) -> String {
    format!(
        "md5{:x}",
        compute(format!("{}{}", password, username).as_bytes())
    )
}
fn gen_md5_password ( password : & str , username : & str ) -> String { format ! ( " " compute ( format ( " " password username ) as_bytes ( ) ) ) }
Generate md5 password hash from username and password
1.
Generate md5 password hash from username and password 1 .
password
&str
username
&str