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
9
votes
3 answers

How to easily encrypt and decrypt a String using Tink?

Until now, I was using jasypt to encrypt a string before storing it on disk on app closing, and later when opening the app for decrypt the string after retrieving it from disk. It was super easy with jasypt, this was the code: private static final…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
4
votes
1 answer

Is there a way to call Google Keyczar from node.js?

I need to generate some HMACs server side in my application written in node.js. Node does provide HMAC functionality in its crypto class: http://nodejs.org/api/crypto.html#crypto_class_hmac However, keyczar has a few more features on top of this,…
Anton I. Sipos
  • 3,493
  • 3
  • 27
  • 26
3
votes
1 answer

How to generate and use keys using Keyczar?

I am new to network security and trying to make one personal password manager. Definitely now I will have to use encryption and hashing algorithms. I came across to Keyczar , which provides encryption and decryption algorithms. There I saw following…
mfs
  • 3,984
  • 6
  • 32
  • 51
3
votes
2 answers

How to use EncryptedCharfield

Is there any documentation or examples/tutorial how to get EncryptedCharField working in a Django model? It took me allot of time to install django-extension + keyczar etc in my django project. There is no doc how to get it installed. This is what…
nelsonvarela
  • 2,310
  • 7
  • 27
  • 43
3
votes
1 answer

using keyczar in android

I am looking into making my user data secure for android. I come across keyczar. I found the android-keyczar-demo provided by Kenny Root who gives talk on android security at google-IO. However I have a nagging question. Since the keys are packaged…
Win Myo Htet
  • 5,377
  • 3
  • 38
  • 56
2
votes
2 answers

Performance of python library keyczar in Windows

I am running this code to see the performance impact of the keyczar encryption library from google: from keyczar import keyczar, keys def main(iters): key = keys.RsaPrivateKey.Generate() msg = "ciao" crypt = None for i in…
hughdbrown
  • 47,733
  • 20
  • 85
  • 108
2
votes
1 answer

Using private + public different servers

I have a Django project and I am using the django-encrypted field. What I liked to do is only using encryption in his project. I did that by setting ENCRYPTED_FIELD_MODE = 'ENCRYPT' This way there's no possibility to decrypt the encrypted…
nelsonvarela
  • 2,310
  • 7
  • 27
  • 43
2
votes
2 answers

Asymmetric encryption for Android using KeyCzar

I want to create an application that encrypts messages for the server with the public key of the server. I thought to use KeyCzar, but if you have better or other good ideas, I will be glad to hear. My questions: The application has to save the…
Gari BN
  • 1,635
  • 2
  • 17
  • 31
2
votes
2 answers

Using KeyczarTool to create new keyset

Following the documentation noted in the wiki, I'm trying to use the KeyczarTool to generate new keyset. Anyone else come across this FileNotFoundException? The KeyczarTool.jar has rwx permissions and tried running via sudo. From docs Command…
scottyab
  • 23,621
  • 16
  • 94
  • 105
1
vote
0 answers

Keyczar implementation in Android sample

I am looking to secure my data using Keyczar and I came across android-keyczar-demo but the demo seems to be unavailable. Is anyone aware of a demo? I went through the pdf from here as well - however I am struggling with setting location with…
user1051505
  • 952
  • 3
  • 22
  • 37
1
vote
1 answer

Adding keyczar as a Maven dependencies in NetBeans

I am trying to add keyczar to my current project and I am following the instructions provided on the project's webpage. However this is not working in NetBeans 8. I added the following lines in my POM file :
user1283559
  • 39
  • 1
  • 6
1
vote
1 answer

RSA keyczar and js

I've implemented a security system in my app with RSA. I've generated the public and private keys using Keyczar Tool. Using just keyczar I can encrypt with public key and decrypt with private key with no problems at all. I want to encrypt some data…
Henrique Gonçalves
  • 1,572
  • 3
  • 16
  • 27
1
vote
3 answers

Get resource folder in java war file

I'm creating a REST webservice that uses keyczar for encryption. I've generated both public and private keys and placed them under src/main/resources/RSA. To instantiate the encrypter I need to pass to it the location of the files like Crypter…
Henrique Gonçalves
  • 1,572
  • 3
  • 16
  • 27
1
vote
1 answer

.NET 4.0 DsaKeyValue required/optional parameter query for DSACryptoServiceProvider

Im kinda confused about the required/optional requirement for loading XML for a DSACryptoServiceProvider. From the this website, the following is the schema: Schema Definition:
TheRRRanger
  • 365
  • 3
  • 12
0
votes
1 answer

Can I decrypt data which is encrypted by Keyczar using Google Tink?

I have been using Google Keyczar for encrypting data in my JAVA app. And I want to change the crypto solution to Google Tink. But the problem is the already encrypted data by Keyczar. Can I decrypt them by Tink? If yes, I want to change the crypto…
1
2