Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 58

Thread: Ext.util.MD5

  1. #31
    Ext User
    Join Date
    Oct 2008
    Posts
    23
    Vote Rating
    0
      0  

    Default

    hi, i want to do a "retrieve password" read from database n show it in a form..like you said this plugin "It works exactly like the PHP function md5()" but i canot "retrieve" the md5 encrypted password n show it like php function just encrypted the text and send it to server side not the opossite...any sugesstion? thanks in advance!

  2. #32
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    12
      0  

    Default

    Quote Originally Posted by Nand@ View Post
    hi, i want to do a "retrieve password" read from database n show it in a form..like you said this plugin "It works exactly like the PHP function md5()" but i canot "retrieve" the md5 encrypted password n show it like php function just encrypted the text and send it to server side not the opossite...any sugesstion? thanks in advance!

    mmh, i don't quite understand:

    like i stated in the first post:

    PHP Code:
    var MD5Hash Ext.util.MD5("testtext"); //returns 0ea2d99c9848117666c38abce16bb43e
    document.write(MD5Hash); 
    This "retrieves" the MD5-Hash of the password "testtext" into the JS-Var MD5Hash and outputs it into the briowser document
    The php-function does the same....

    PHP Code:
    $md5hash md5("testtext");
    echo 
    $md5hash

  3. #33
    Ext User
    Join Date
    Oct 2008
    Posts
    23
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by wm003 View Post

    mmh, i don't quite understand:

    like i stated in the first post:

    PHP Code:
    var MD5Hash Ext.util.MD5("testtext"); //returns 0ea2d99c9848117666c38abce16bb43e
    document.write(MD5Hash); 
    This "retrieves" the MD5-Hash of the password "testtext" into the JS-Var MD5Hash and outputs it into the briowser document
    The php-function does the same....

    PHP Code:
    $md5hash md5("testtext");
    echo 
    $md5hash
    yep i understend you..but, if you use a
    PHP Code:
    $md5hash md5("testtext");
    echo 
    $md5hash
    show something like 0ea2d99c9848117666c38abce16bb43e AND if you "read" the database AND the password is already encrypted then show you "testtext" ..so i want to know how get the "two" ways: encrypt and decrypt the string...like the md5 php function...
    another comparison: if you wanna know the password from a user well we need to decrypt the encrypted password reading the database n show it "plain text" but if you want to "save" the password from a user well we use a md5(password) to encrypt the plain text...

    i hope you understand..thanks

  4. #34
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      0  

    Default

    encryption is one way. You can't decrypt in php either. Do like the norm, reset the password if someone forgets it.

  5. #35
    Ext User
    Join Date
    Oct 2008
    Posts
    23
    Vote Rating
    0
      0  

    Default

    you right guess i forget...think i got it..thanks to all

  6. #36
    Ext User
    Join Date
    Dec 2008
    Posts
    108
    Vote Rating
    0
      0  

    Default

    Hi does anyone knows how to make this MD5 function one of the property of texfiled?
    like
    PHP Code:
     password = new Ext.form.TextField({
              
    fieldLabel:'Password'
              
    id:'loginPassword',
              
    name:'loginPassword'
              
    inputType:'password'
              
    allowBlank:false,
              
    encrypttrue //how can I do like this?          
     
        
    }); 

  7. #37
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    I think that better would be to "encrypt" it before it is sent to server - MD5 sum value has no sense at client.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  8. #38
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      0  

    Default

    Quote Originally Posted by extjs_new View Post
    Hi does anyone knows how to make this MD5 function one of the property of texfiled?
    like
    PHP Code:
     password = new Ext.form.TextField({
              
    fieldLabel:'Password'
              
    id:'loginPassword',
              
    name:'loginPassword'
              
    inputType:'password'
              
    allowBlank:false,
              
    encrypttrue //how can I do like this?          
     
        
    }); 
    I agree with Saki that it's questionable as to the merits of doing this client side, but if you insist on doing it, I think the answer to your question would be that you either need to override TextField, or make your own extension for Ext.ux.form.MD5Field or something (I guess if you extend then that would make having "encrypt" and "inputType" config properties moot as that class would automatically do it.

    So the direct answer to your question without suggestions, you have to override TextField.

  9. #39
    Ext JS Premium Member
    Join Date
    Feb 2008
    Location
    France, Paris
    Posts
    38
    Vote Rating
    0
      0  

    Default Where is the download ?...

    Perhaps I miss something but I really don't find where to get the extension (Ext.util.MD5)...

    Any help?

    UPDATE: found here http://www.extjs.eu/docs/

  10. #40
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    12
      0  

    Default

    i swear the code was part of the first post..anyone of the admin deleted it?
    mmh, i guess while updating vbulletin the last time some of the attachments got lost...the file was still in the first post, but named "undefined"...i even cannot delete it. So i attached a new one to the first post

Page 4 of 6 FirstFirst ... 23456 LastLast

Posting Permissions

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