phpDocumentor Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: SwiftEncrypt

Source Location: /classes/SwiftEncrypt.php

Class SwiftEncrypt

Method Summary
SwiftEncrypt   __construct()   Creates a new SwiftEncrypt object.
String   encryptBlowfish()   Encrypts a String with the Blowfish encryption using a 22-character salt.
String   encryptExtDes()   Encrypts a String with the Extended DES encryption using a 9-character salt.
String   encryptMd5()   Encrypts a String with the MD5 encryption using a 12-character salt.
String   encryptSha256()   Encrypts a String with the SHA-526 encryption using a 16-character salt.
String   encryptSha512()   Encrypts a String with the SHA-512 encryption using a 16-character salt.
String   encryptStdDes()   Encrypts a String with the Standard DES encryption using a 2-character salt.

[ Top ]
Methods
Constructor __construct  [line 47]

  SwiftEncrypt __construct( )

Creates a new SwiftEncrypt object.


API Tags:
Return:  The new SwiftEncrypt object
Access:  public


[ Top ]
encryptBlowfish  [line 97]

  String encryptBlowfish( String $string, String $salt, [Integer $cost = 7]  )

Encrypts a String with the Blowfish encryption using a 22-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A 22-character alphanumeric salt to encrypt the string with.
Integer   $cost:  A two digit base-2 logarithm representing the iteration count for the Blowfish hashing loop. (Default: 7)

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]
encryptExtDes  [line 68]

  String encryptExtDes( String $string, String $salt  )

Encrypts a String with the Extended DES encryption using a 9-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A 9-character alphanumeric salt to encrypt the string with.

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]
encryptMd5  [line 82]

  String encryptMd5( String $string, String $salt  )

Encrypts a String with the MD5 encryption using a 12-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A 12-character alphanumeric salt to encrypt the string with.

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]
encryptSha256  [line 116]

  String encryptSha256( String $string, String $salt, [Integer $rounds = 5000]  )

Encrypts a String with the SHA-526 encryption using a 16-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A 16-character salt to encrypt the string with.
Integer   $rounds:  Numbers of times the hashing loop should be executed. (Default: 5000)

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]
encryptSha512  [line 131]

  String encryptSha512( String $string, String $salt, [Integer $rounds = 5000]  )

Encrypts a String with the SHA-512 encryption using a 16-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A sixteen character salt to encrypt the string with.
Integer   $rounds:  Numbers of times the hashing loop should be executed. (Default: 5000)

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]
encryptStdDes  [line 55]

  String encryptStdDes( String $string, String $salt  )

Encrypts a String with the Standard DES encryption using a 2-character salt.

Parameters:
String   $string:  The String to encrypt.
String   $salt:  A 2-character alphanumeric salt to encrypt the string with.

API Tags:
Return:  The encryped string.
Access:  public


[ Top ]

Documentation generated on Tue, 08 Oct 2013 05:37:15 +0200 by phpDocumentor 1.4.4