Version: current

# Class PasswordEncryptor_None

Cleartext passwords (used in SilverStripe 2.1). Also used when Security::$encryptPasswords is set to FALSE. Not recommended.

  PasswordEncryptor
  PasswordEncryptor_None

Package: sapphire\security
Located at sapphire/security/PasswordEncryptor.php

## Methods summary

`public String` | # `encrypt( String $password, String $salt = null, `Member` $member = null )` Return a string value stored in the Member->Password property. The password should be hashed with `PasswordEncryptor_None::salt()` if applicable. Return a string value stored in the Member->Password property. The password should be hashed with `PasswordEncryptor_None::salt()` if applicable. #### Parameters $password String $password Cleartext password to be hashed $salt String $salt (Optional) $member Member $member (Optional) #### Returns `String` Maximum of 512 characters.
`public String` | # `salt( String $password, `Member` $member = null )` Return a string value stored in the Member->Salt property. By default uses sha1() and mt_rand(); Return a string value stored in the Member->Salt property. By default uses sha1() and mt_rand(); Note: Only used when `Security::$useSalt` is TRUE. #### Parameters $password String $password Cleartext password $member Member $member (Optional) #### Returns `String` Maximum of 50 characters #### Overrides `PasswordEncryptor::salt`

### Methods inherited from PasswordEncryptor

`compare()`, `create_for_algorithm()`, `get_encryptors()`, `register()`, `unregister()`

### Magic methods summary

## Properties summary

### Properties inherited from PasswordEncryptor

`$encryptors`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -