Skip to content

hanachin/mruby-opvault

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mruby-opvault Build Status

decrypt OPVault

Installation

Add this line to build_config.rb

MRuby::Build.new do |conf|
  conf.gem github: 'hanachin/mruby-opvault'
end

or add this line to your aplication's mrbgem.rake

MRuby::Gem::Specification.new('your-mrbgem') do |spec|
  spec.add_dependency 'mruby-opvault', github: 'hanachin/mruby-opvault'
end

Usage

master_password = 'freddy'
opvault = OPVault.new('./onepassword_data')
profile = opvault.profile

derived_keys  = profile.derive_keys(master_password)
master_keys   = profile.master_keys(derived_keys)
overview_keys = profile.overview_keys(derived_keys)

profile.items.each do |item|
  puts item.overview(overview_keys).title
  p item.detail(master_keys).fields
end

How to run test

$ git clone https://github.com/hanachin/mruby-opvault.git
$ cd mruby-opvault
$ ./test.sh

License

MIT

About

decrypt OPVault

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published