PBKDF2 will securely generate an encryption key from a given password, then AES-GCM will use that key to encrypt provided data, offering both confidentiality and integrity protection.