Defuse\Crypto\File::encryptResourceWithPassword PHP Method

encryptResourceWithPassword() public static method

Encrypts the contents of one resource handle into another with a password, using a slow key derivation function to make password cracking more expensive.
public static encryptResourceWithPassword ( resource $inputHandle, resource $outputHandle, string $password )
$inputHandle resource
$outputHandle resource
$password string
    public static function encryptResourceWithPassword($inputHandle, $outputHandle, $password)
    {
        self::encryptResourceInternal($inputHandle, $outputHandle, KeyOrPassword::createFromPassword($password));
    }