我是网络安全的新手,正在尝试创建一个个人密码管理器。当然,现在我将不得不使用加密和散列算法。
我遇到了Keyczar,它提供加密和解密算法。在那里,我看到下面两行代码将生成密钥。
KeyczarTool create --location=/path/to/keyset --purpose=sign
KeyczarTool create --location=/path/to/keyset --purpose=crypt --name=Test
KeyczarTool create --location=/path/to/keyset --purpose=sign --asymmetric=dsa现在的问题是我不确定在哪里执行它们,我使用的是Netbeans。
发布于 2016-02-01 22:20:55
使用这些命令,您只需创建密钥。现在,您需要编写实际使用这些键的代码。在Java中,它类似于:
Crypter crypter = new Crypter("/path/to/your/keys");
String ciphertext = crypter.encrypt("Secret message");您可以在https://github.com/google/keyczar/wiki上找到更多C++和Python语言的文档和示例。
更新:尽管它不是完全最新的,但我发现这个文档非常有用,比你可以在那里找到的其他链接要深入得多:https://github.com/google/keyczar/blob/wiki/keyczar05b.pdf
https://stackoverflow.com/questions/32909521
复制相似问题