ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
interface.ilPasswordEncoder.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
10 {
17  public function encodePassword($raw, $salt);
18 
26  public function isPasswordValid($encoded, $raw, $salt);
27 
32  public function getName();
33 
38  public function requiresSalt();
39 
45  public function requiresReencoding($encoded);
46 
51  public function isSupportedByRuntime();
52 }
requiresSalt()
Returns whether or not the encoder requires a salt.
isSupportedByRuntime()
Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
getName()
Returns a unique name/id of the concrete password encoder.
requiresReencoding($encoded)
Returns whether or not the a encoded password needs to be re-encoded.
isPasswordValid($encoded, $raw, $salt)
Checks a raw password against an encoded password.
encodePassword($raw, $salt)
Encodes the raw password.