rexworld / cryptophane

Automatically exported from code.google.com/p/cryptophane
GNU General Public License v2.0
0 stars 0 forks source link

invalid password if longer than 64 characters #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Passaword not valid! Password valid.

What version of the product are you using? On what operating system?
0.7.0.42

Please provide any additional information below.

I checked better. Cryptophane can only enter passwords smaller than about
64 characters. It would be useful to include longer passwords. I use the
password very long to write. Why can not I paste a copy and paste when you
import the certificates? Thank you.

Original issue reported on code.google.com by diamant...@gmail.com on 19 Apr 2010 at 7:49

GoogleCodeExporter commented 9 years ago
PassphraseEdit.MaxLength := 64;
  PassphraseEdit.Text := '';
  try
    result := false;
    if ShowModal <> mrOK then Exit;
    StrLCopy(passphrase, PChar(PassphraseEdit.Text), 63);
    result := true;
  finally
    blank := '';
    for i := 1 to Length(PassphraseEdit.Text) do blank := blank + ' ';
    PassphraseEdit.Text := blank;
    PassphraseEdit.Text := '';
  end;

May be <=63 characters.
(From 
https://code.google.com/p/cryptophane/source/browse/trunk/src/Passphrase.pas)

Original comment by trevorla...@gmail.com on 4 Apr 2014 at 9:54