Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

python - Keyczart does not add key #41

Closed
GoogleCodeExporter opened this issue Mar 7, 2015 · 5 comments
Closed

python - Keyczart does not add key #41

GoogleCodeExporter opened this issue Mar 7, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. python keyczart.py create --location='.' --purpose=crypt
2. python keyczart.py addkey --location='.'

What do you see instead?
Traceback (most recent call last):
  File "keyczart.py", line 279, in <module>
    sys.exit(main(sys.argv[1:]))  # sys.argv[0] is name of program
  File "keyczart.py", line 264, in main
    int(flags.get(SIZE, -1)), crypter)
  File "keyczart.py", line 118, in AddKey
    UpdateGenericKeyczar(czar, loc, crypter)
  File "keyczart.py", line 236, in UpdateGenericKeyczar
    czar.Write(loc, encrypter)
  File "/home/neo/Proyectos/Python/Keyczar-Python/src/keyczar/keyczar.py",
line 270, in Write
    key = encrypter.Encrypt(key)  # encrypt key info before outputting
AttributeError: 'int' object has no attribute 'Encrypt'


What version of the product are you using? On what operating system?
Keyczar 0.5b Python Release
Ubuntu Hardy (8.04)
Python 2.5.2

Please provide any additional information below.
This is the content of 'meta' after ot run 'addkey':

{"encrypted": true, "versions": [{"status": "ACTIVE", "versionNumber": 1,
"expor
table": false}], "type": "AES", "name": "Test", "purpose":
"DECRYPT_AND_ENCRYPT"
}

Original issue reported on code.google.com by jonas....@googlemail.com on 8 Oct 2008 at 4:05

@GoogleCodeExporter
Copy link
Author

This bug already was commented by another person, here is its path:

http://groups.google.com/group/keyczar-discuss/browse_thread/thread/95528d6411e8
7d74

Original comment by jonas....@googlemail.com on 12 Oct 2008 at 5:40

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Is this problem fixed ? I can't reproduce it with the current trunk. BTW, how 
the
meta file could contain "encrypted": true, without using --crypter option in 
command
addkey ?

Original comment by sebastien.martini on 4 Jun 2009 at 12:16

@GoogleCodeExporter
Copy link
Author

This issue is indeed fixed. We hadn't updated the archive file.

Original comment by stevew...@gmail.com on 17 Jun 2009 at 11:28

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant