1pif Format - How to Generate ContentsHash?
Hi there!
I'm writing a tool that generates good credentials en masse for infrastructure deployments (certificates, keys, passwords, hashes, etc; 20-30 items all told) and I would like to be able to send them easily to 1Password. CSV is not a good solution for my use case because there is no ability to label field names or create sections, so I'll have to shoehorn things or create a silly number of new items.
Bless you for using JSON as the 1pif format--that's made everything pretty easy.
My one issue is that I don't know how you are generating "contentsHash." Can you share your rubric for generating this field?
Thank you and happy holidays!
Comments
-
Another person just asked a similar question. See my responses in the linked threads.
https://discussions.agilebits.com/discussion/33618/1pif-format-help-or-share-api-details#latest
You don't need to generate the contentsHash. See my 1Password converters for programmatic details, specifically Utils/PIF.pm.
https://discussions.agilebits.com/discussion/30286/mrcs-convert-to-1password-utility/p1
Depending upon your needs, you might be able to create your own Converter module and allow the convert_to_1p4 converter do the 1PIF creation. I'm happy to help guide you through the process.
0 -
Thanks, MrC! That's great news. After you pointed out that I didn't need to generate it, I went back and tested and realized I hadn't appropriately controlled the contentsHash state when I was testing--in other words, it looks like I had other issues that were causing it to not import when I tried to leave it out. Thanks for the tip!
0 -
Have it all working perfectly now. Thanks again!
0 -
Great, and you're welcome.
0