jbtule / keyczar-dotnet

Keyczar high level encryption toolkit in C#.
Apache License 2.0
55 stars 39 forks source link

Crash generating a new Crypter when matadata contains password. #12

Closed P82maarj closed 5 years ago

P82maarj commented 5 years ago

Maybe I'm doing something wrong. If:

  1. KeyczarTool.exe create --location=[path] --purpose=crypt
  2. KeyczarTool.exe create --location=[path] --status=primary
  3. Crypter cyp = new Crypter(path); All ok. If:
  4. KeyczarTool.exe create --location=[path] --purpose=crypt
  5. KeyczarTool.exe create --location=[path] --status=primary --password
  6. Crypter cyp = new Crypter(path); <--Crash

Should I do something if metadata contains a password for avoiding the crash? Thanks for your project and Regards,

jbtule commented 5 years ago
PbeKeySet pks= PbeKeySet(path, FunctionOrLambdaThatReturnsPassword);
Crypter cyp = new Crypter(pks);