[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/defuse/php-encryption/src/ -> File.php (summary)

(no description)

File Size: 778 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 functions

  encryptFile()
  encryptFileWithPassword()
  decryptFile()
  decryptFileWithPassword()
  encryptResource()
  encryptResourceWithPassword()
  decryptResource()
  decryptResourceWithPassword()
  encryptFileInternal()
  decryptFileInternal()
  encryptResourceInternal()
  decryptResourceInternal()
  readBytes()
  writeBytes()
  getLastErrorMessage()

Functions
Functions that are not part of a class:

encryptFile($inputFilename, $outputFilename, Key $key)   X-Ref
Encrypts the input file, saving the ciphertext to the output file.

param: string $inputFilename
param: string $outputFilename
param: Key    $key
return: void

encryptFileWithPassword($inputFilename, $outputFilename, $password)   X-Ref
Encrypts a file with a password, using a slow key derivation function to
make password cracking more expensive.

param: string $inputFilename
param: string $outputFilename
param: string $password
return: void

decryptFile($inputFilename, $outputFilename, Key $key)   X-Ref
Decrypts the input file, saving the plaintext to the output file.

param: string $inputFilename
param: string $outputFilename
param: Key    $key
return: void

decryptFileWithPassword($inputFilename, $outputFilename, $password)   X-Ref
Decrypts a file with a password, using a slow key derivation function to
make password cracking more expensive.

param: string $inputFilename
param: string $outputFilename
param: string $password
return: void

encryptResource($inputHandle, $outputHandle, Key $key)   X-Ref
Takes two resource handles and encrypts the contents of the first,
writing the ciphertext into the second.

param: resource $inputHandle
param: resource $outputHandle
param: Key      $key
return: void

encryptResourceWithPassword($inputHandle, $outputHandle, $password)   X-Ref
Encrypts the contents of one resource handle into another with a
password, using a slow key derivation function to make password cracking
more expensive.

param: resource $inputHandle
param: resource $outputHandle
param: string   $password
return: void

decryptResource($inputHandle, $outputHandle, Key $key)   X-Ref
Takes two resource handles and decrypts the contents of the first,
writing the plaintext into the second.

param: resource $inputHandle
param: resource $outputHandle
param: Key      $key
return: void

decryptResourceWithPassword($inputHandle, $outputHandle, $password)   X-Ref
Decrypts the contents of one resource into another with a password, using
a slow key derivation function to make password cracking more expensive.

param: resource $inputHandle
param: resource $outputHandle
param: string   $password
return: void

encryptFileInternal($inputFilename, $outputFilename, KeyOrPassword $secret)   X-Ref
Encrypts a file with either a key or a password.

param: string        $inputFilename
param: string        $outputFilename
param: KeyOrPassword $secret
return: void

decryptFileInternal($inputFilename, $outputFilename, KeyOrPassword $secret)   X-Ref
Decrypts a file with either a key or a password.

param: string        $inputFilename
param: string        $outputFilename
param: KeyOrPassword $secret
return: void

encryptResourceInternal($inputHandle, $outputHandle, KeyOrPassword $secret)   X-Ref
Encrypts a resource with either a key or a password.

param: resource      $inputHandle
param: resource      $outputHandle
param: KeyOrPassword $secret
return: void

decryptResourceInternal($inputHandle, $outputHandle, KeyOrPassword $secret)   X-Ref
Decrypts a file-backed resource with either a key or a password.

param: resource      $inputHandle
param: resource      $outputHandle
param: KeyOrPassword $secret
return: void

readBytes($stream, $num_bytes)   X-Ref
Read from a stream; prevent partial reads.

param: resource $stream
param: int      $num_bytes
return: string

writeBytes($stream, $buf, $num_bytes = null)   X-Ref
Write to a stream; prevents partial writes.

param: resource $stream
param: string   $buf
param: int      $num_bytes
return: int

getLastErrorMessage()   X-Ref
Returns the last PHP error's or warning's message string.

return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer