Refactor Scrypt Provider to Support PHP Version 5.5.