Results 1 to 5 of 5

Thread: Using Contao encryption

  1. #1
    New user
    Join Date
    08-20-13.
    Posts
    2

    Default Using Contao encryption

    I would like to do so that Contao member can login on Windows Phone 7 app. When member gives correct username and password, WP7 app shows some data to the member from MySQL database.

    The problem is password encryption. When I try to use encryption class like

    echo $encrypted = Encryption::encrypt('somePassword');

    I get following error message: Fatal error: Class 'Encryption' not found in /web-data2/...

    I am using Contao 2.9.5

    Please help!

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Using Contao encryption

    Where is the Encryption class file located and what is it called?

  3. #3
    New user
    Join Date
    08-20-13.
    Posts
    2

    Default Re: Using Contao encryption

    Quote Originally Posted by Ruud
    Where is the Encryption class file located and what is it called?
    It is located /contao/system/libraries and the file is Encryption.php.

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Using Contao encryption

    I don't think you can call it statically in Contao 2. Instead try:
    Code:
    $this->import('Encryption');
    $somthing = $this->Encryption->encrypt($somethingSecret);

  5. #5
    New user
    Join Date
    09-01-13.
    Location
    united state
    Posts
    2

    Default Re: Using Contao encryption

    Hi,

    Google update by HTTPs Encryption, but whats the solution for it?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •