This repository has been archived by the owner on Aug 28, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major Backwards Incompatible API and Share format changes.
This release includes a number of enhancements which necessitated changes to the public API as well as the String format of the Share#to_s which is the part that actually gets shared between people. The changes include: - New Share#to_s output which is a Base64 encoded MessagePack serialization of a JSON Hash of the Share. This should allow more flexibility since the underlying format is a Hash that can be used to instantiate a new Share. The MessagePack and Base64 protocols are platform independent. - No longer use the pbkdf2 hashes as a way to create a secure Hash of the original secret. Instead use a SHA256 HMAC where the HMAC key is the original secret and the HMAC data is a SHA256 hash of the Secret. This allows passing this HMAC as part of the Share String which in turn allows one to *verify* that the secret that is re-hydrated is in *fact* the same as the Secret that was originally used to create the Share. Previously, one could never be sure that the re-hydrated secret was the same if for example a typo crept into the Share String. - Removed support for the old Share String format. Use the older version of the Gem if you need this supported.
- Loading branch information
Showing
13 changed files
with
239 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ source "https://rubygems.org" | |
gem 'rake' | ||
gem 'minitest' | ||
gem 'highline' | ||
gem 'pbkdf2-ruby' | ||
gem 'msgpack' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.