Toolkit for safe and simple cryptography in Java, Python, C++, C# and Go
Keyczar
Keyczar is an open source cryptographic toolkit designed to make it easier and safer for developers to use cryptography in their applications. Keyczar supports authentication and encryption with both symmetric and asymmetric keys. Some features of Keyczar include:
- A simple API
- Key rotation and versioning
- Safe default algorithms, modes, and key lengths
- Automated generation of initialization vectors and ciphertext signatures
- Java, Python, C++, C# and Go implementations
Keyczar was originally developed by members of the Google Security Team and is released under an Apache 2.0 license.
Example
Authenticated Encryption
Create a keyset:
$> KeyczarTool create --location=path/to/key/set --purpose=crypt
Create a key:
$> KeyczarTool addkey --location=path/to/key/set --status=primary
In code:
crypter = keyczar.Crypter.Read("path/to/key/set")
ciphertext = crypter.Encrypt("my secret")
plaintext = crypter.Decrypt(ciphertext)
See more Examples on the Keyczar Wiki.