Comments (4)
Looking at how Keyczart uses it, I'm guessing this is an oversight. It works in two steps, save the new keymanager, and load and add the new key. Doing so programmatically in one step would be desirable.
from dkeyczar.
I'll push a fix for this tonight.
from dkeyczar.
Nice. I've also implemented a reader for directly json encoded data like
{ "meta" : "{heregoes the meta json encoded}", "1" : "{here goes key version 1}" }
do you want me to issue a PR or should I keep it to myself?
from dkeyczar.
A quick note. The keymanager stuff was written primarily to serve the needs of keyczart, the tool to create and manage keys, rather than a more general purpose library that can be called from an application. Thus, some of the required logic is in the keyczart code and keyman only contains things that poke into the non-exported internals of keyczar keys. This was potentially a bad design decision (keyczar was one of my first Go projects).
BTW is there an easy way to export/import a keymanager to JSON? or should I implement it myself in my code?
A keymanager provides access to a key set, which is a set of JSON files (as produced by ToJSONs()) -- it contains no useful information of its own. Having something which can load a key from an array json array is probably useful for those cases where having the keys on the file system is not possible.
from dkeyczar.
Related Issues (15)
- request: fully functional keyczartool for Go HOT 4
- Continuous Integration for testing HOT 4
- meaning of "keyczar: key not found" ? HOT 1
- Implement the command-line tool for the 'official' compatibility tests
- keyczart needs pbejson support
- remove compression support
- unexport enums
- Clean up API
- KeyCzar -> Keyczar
- de-ego package name
- Add HMAC_SHA256
- Add PKCS#1 support
- Add PKCS#8 key import/export
- keyczar: key not found - only on production HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dkeyczar.