Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shea256 committed Feb 7, 2014
1 parent 4966df0 commit 0d17618
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A system for sharing secrets using Shamir's Secret Sharing Scheme.

## Sample Usage

#### Creating secrets from strings
#### Creating secrets from ascii strings

>>> from secretsharing.shamir import Secret
>>> secret = Secret.from_printable_ascii("Hello, world!")
Expand All @@ -14,9 +14,13 @@ A system for sharing secrets using Shamir's Secret Sharing Scheme.
>>> secret.as_int()
43142121247394322427211362L

#### Creating secrets from hex private keys

>>> secret = Secret.from_hex("c4bbcb1fbec99d65bf59d85c8cb62ee2db963f0fe106f483d9afa73bd4e39a8a")

#### Creating secrets from integers

>>> secret = Secret(43142121247394322427211362L)
>>> secret = Secret(43142121247394322427211362L)

#### Spliting secrets into shares

Expand Down

0 comments on commit 0d17618

Please sign in to comment.