Crash generating a new Crypter when matadata contains password.
P82maarj opened this issue · 1 comments
P82maarj commented
Maybe I'm doing something wrong.
If:
- KeyczarTool.exe create --location=[path] --purpose=crypt
- KeyczarTool.exe create --location=[path] --status=primary
- Crypter cyp = new Crypter(path);
All ok.
If: - KeyczarTool.exe create --location=[path] --purpose=crypt
- KeyczarTool.exe create --location=[path] --status=primary --password
- 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
PbeKeySet pks= PbeKeySet(path, FunctionOrLambdaThatReturnsPassword);
Crypter cyp = new Crypter(pks);