Questions tagged [keyczar]

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.

20 questions
0
votes
2 answers

c++ encrypt a text with a key received over packet? keyczar?

I'm storing a client's password in his device and there are times when clients need to send their password to server. When a client connects to me(server), I give him a key that will be used for encryption. I want a client to send a encrypted…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
1 answer

What type of file does "/path/to/your/key" refer to?

I am using Keyczar and this is the psedo code on the website Crypter crypter = new Crypter("/path/to/your/keys"); String ciphertext = crypter.encrypt("Secret message"); I know its the path to my encrpytion key but what type of file is it ?? What…
Computernerd
  • 7,378
  • 18
  • 66
  • 95
0
votes
3 answers

How to include an external library into your project properly

I am using the Keyczar Java library to encrpyt and decrpyt information. I am trying to do the below as stated on the main site package testing2; import testing2.org.keyczar; public class Testing2 { public static void main(String[] args) …
Computernerd
  • 7,378
  • 18
  • 66
  • 95
0
votes
1 answer

Python 2.7 cannot import Crypto

Hi this what I'm getting when I try to run a python program on Windows 8x64 Visual Studio 2012 Python 2.7 I've tried installing precompiled binaries but failed. from keyczar.keys import RsaPrivateKey,RsaPublicKey,AesKey File…
Jithu R Jacob
  • 368
  • 2
  • 17
0
votes
1 answer

Does keyczar python library provide functionality to verify signatures signed using x509 PEM certificates?

I could not find a method to parse x509 pem files. I tried using ParseX509 of utils module which threw up.
Bhargava
  • 189
  • 3
  • 12
1
2