1. #41
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,537
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Not me Re-post it please.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #42
    Ext JS Premium Member
    Join Date
    Feb 2008
    Location
    France, Paris
    Posts
    38
    Vote Rating
    0
    aurelien is on a distinguished road

      0  

    Default


    thanks!

  3. #43
    Ext JS Premium Member
    Join Date
    Feb 2008
    Location
    France, Paris
    Posts
    38
    Vote Rating
    0
    aurelien is on a distinguished road

      0  

    Default


    Are you sure is it the last version you uploaded?

    I can't get the hexcase parameters work and the code let me think is an old version...

    Thanks!

  4. #44
    Ext User
    Join Date
    May 2009
    Posts
    12
    Vote Rating
    0
    kaeptn is on a distinguished road

      0  

    Default


    Quote Originally Posted by aurelien View Post
    Are you sure is it the last version you uploaded?

    I can't get the hexcase parameters work and the code let me think is an old version...

    Thanks!
    Seems to be broken for me, too. The file the zip extracts does not even check for any arguments

    No wonder it does not work ...

  5. #45
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    i replaced the attachment of the first post again. there was an old version which didn't support all features. The current one does it again.

  6. #46
    Ext JS Premium Member
    Join Date
    Jan 2009
    Location
    USA
    Posts
    127
    Vote Rating
    0
    VATigers is on a distinguished road

      0  

    Default


    Thanks Wm003 for this util.

    I want to know, if there is a way to decrypt the hashed string? I have read the entire thread and this question has been answered that the encryption is one way.

    I am not playing with password but I have a requirement where I am hashing couple of things and then joining them up into 1 string.

    So I also need to decrypt the hashed string.

    Would be awesome if this is implemented.

  7. #47
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Quote Originally Posted by VATigers View Post
    Thanks Wm003 for this util.

    I want to know, if there is a way to decrypt the hashed string? I have read the entire thread and this question has been answered that the encryption is one way.

    I am not playing with password but I have a requirement where I am hashing couple of things and then joining them up into 1 string.

    So I also need to decrypt the hashed string.

    Would be awesome if this is implemented.
    unhashing MD5 takes a lot of computing power for many hours.

  8. #48
    Ext User
    Join Date
    May 2009
    Posts
    12
    Vote Rating
    0
    kaeptn is on a distinguished road

      0  

    Default


    Quote Originally Posted by VATigers View Post
    Thanks Wm003 for this util.

    I want to know, if there is a way to decrypt the hashed string? I have read the entire thread and this question has been answered that the encryption is one way.

    I am not playing with password but I have a requirement where I am hashing couple of things and then joining them up into 1 string.

    So I also need to decrypt the hashed string.

    Would be awesome if this is implemented.
    You suffer from a fundamental misunderstanding. You need a different approch to your problem as MD5 and others like SHA etc. can not be reversed back to the original string. In absolutely no way this is possible.

    There's a difference between a hash function and an encryption function. Also it might not be possible to concat (append) several encrypted strings and then decrypt the combined string to one making sense ... depends on the method you choose.

    Perhaps you describe your problem so we can give a better hint. Pease be concise as your problem seems to be a little off topic.

  9. #49
    Ext JS Premium Member
    Join Date
    Jan 2009
    Location
    USA
    Posts
    127
    Vote Rating
    0
    VATigers is on a distinguished road

      0  

    Default


    I was thinking of encryption and decryption and some how mixed it with hashing.
    Couple of years ago, I had implemented crytography and I carried the same idea of encryption and decryption to my current requirement.

    I had kind of forgotten that hashing algorithms are only one way. Thanks for clearing the confusion.


    My requirement is
    I want to concat several encrypted strings and then decrypt it. or may be append strings, encrypt it and then later on decrypt it .

  10. #50
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Trivial method:

    Code:
    // Encrypts $str if not already encrypted
    // otherwise decrypts $str
    function EnDeCrypt($str) {
      $ha = "mschwartz";  // choose some arbitrary string here
      $hlen = strlen($ha);
      $hndx = 0;
      $slen = strlen($str);
      $out = '';
      for ($i=0; $i<slen; $i++) {
        $out .= substr($str, $i, 1) ^ substr($ha, $hndx, 1);
        $hndx = ($hndx + 1) % $hlen;
      }
      return $out;
    }
    Not super hard for someone to decrypt, but good enough to keep honest people honest.