Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • Accounts
  • ApiKeys
  • CalendarEvents
  • ClientGroups
  • Clients
  • Companies
  • Contacts
  • Countries
  • Coupons
  • CronTasks
  • Currencies
  • EmailGroups
  • Emails
  • Encryption
  • GatewayManager
  • Invoices
  • InvoiceTemplateManager
  • Languages
  • Logs
  • Marketplace
  • ModuleClientMeta
  • ModuleManager
  • Navigation
  • PackageGroups
  • PackageOptionGroups
  • PackageOptions
  • Packages
  • Payments
  • Permissions
  • PluginManager
  • Pricings
  • ReportManager
  • ServiceChanges
  • Services
  • Settings
  • Staff
  • StaffGroups
  • States
  • Taxes
  • Themes
  • Transactions
  • Users

Class Encryption

Company Encryption Settings

Model
Extended by AppModel
Extended by Encryption
Package: blesta\app\models
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/models/encryption.php

Methods summary

public
# __construct( )

Initialize Encryption settings

Initialize Encryption settings

Overrides

AppModel::__construct
public
# setPassphrase( array $vars, boolean $require_agree = false )

Sets the new passphrase used to encrypt/decrypt the private key. When a blank private_key_passphrase is used the Blesta.system_key is used to encrypt the private key, allowing the system to decrypt it at will. However, if a private_key_passphrase is set that value is instead used to encrypt the private key and therefore only that key (which Blesta does not store) can be used to decrypt the private key.

Sets the new passphrase used to encrypt/decrypt the private key. When a blank private_key_passphrase is used the Blesta.system_key is used to encrypt the private key, allowing the system to decrypt it at will. However, if a private_key_passphrase is set that value is instead used to encrypt the private key and therefore only that key (which Blesta does not store) can be used to decrypt the private key.

Parameters

$vars
array
$vars An array of passphrase info including: - current_passphrase The current passphrase in use (leave blank if no passphrase currently set) - private_key_passphrase The new password to use - confirm_new_passphrase The new password again, to confirm (optional) - agree Set to some non-empty value (e.g. "yes") if the user understands the ramifications of setting a passphrase
$require_agree
boolean
$require_agree Set to true to require that user has saved the passphrase to a safe location
public boolean
# verifyPassphrase( string $passphrase )

Verify if the given passphrase is valid

Verify if the given passphrase is valid

Parameters

$passphrase
string
$passphrase The passphrase to test

Returns

boolean
True if the passphrase is valid, false otherwise

Methods inherited from AppModel

_(), boolToInt(), currencyToDecimal(), dateToUtc(), errors(), getPerPage(), ifSet(), loadCrypto(), setDefaultIfEmpty(), setPerPage(), setRulesIfSet(), strToBool(), systemDecrypt(), systemEncrypt(), systemHash(), truncateDecimal(), validateExists(), validateStateCountry()

Methods inherited from Model

affectedRows(), begin(), commit(), getConnection(), lastInsertId(), makeDSN(), prepare(), query(), rollBack(), setAttribute(), setFetchMode()

Magic methods summary

Properties summary

Properties inherited from AppModel

$replacement_keys

Blesta API documentation generated by ApiGen 2.8.0