Apply cryptographic principles to protect data at rest and in transit.
Write a script that hashes a password using bcrypt, verifies a login attempt, and creates an asymmetric RSA key pair to encrypt a secret message.