Skip to content

Commit c45ee17

Browse files
committed
updated method signatures
1 parent 143ba71 commit c45ee17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ to fetch your public key from the private key.
2222

2323
Next, you may wish to sign something, using your private key. For instance a file:
2424

25-
`String signature = myPrivateKey.sign(myFile);`
25+
`String signature = myPrivateKey.sign(myFile, null);`
2626

2727
Or, if you want to store the signature directly into another file, use
2828

29-
`myPrivateKey.signToFile(myFile,mySignatureFile);`
29+
`myPrivateKey.signToFile(myFile, mySignatureFile, null);`
3030

3131
At some point, you may wish to verify the signature of a file. Use your public key:
3232

33-
`boolean isSignatureValid = myPublicKey.verifyFromFile(myFile, mySignatureFile);`
33+
`boolean isSignatureValid = myPublicKey.verifyFromFile(myFile, mySignatureFile, null);`
3434

3535
Of course it doesn't make much sense if the keys can be kept in memory only. Save them to disk using their `saveAsFile(...)` methods, and restore them using their static `loadFromFile(...)` methods. You have to supply a password to store your private key, which will be used for strong encryption. Keep your private key, and distribute your public key.
3636

0 commit comments

Comments
 (0)