Paillier Threshold Cryptography Web Service Quick Set-up

daughterinsectΤεχνίτη Νοημοσύνη και Ρομποτική

21 Νοε 2013 (πριν από 4 χρόνια και 7 μήνες)

137 εμφανίσεις

Paillier Threshold Cryptography Web Service Quick Set


Copy the ~/gsc/pub/bswilson/src/ThresholdCryptoService folder to a computer with Internet
Information Services (IIS) installed.


Open Internet Information Services from Administrative Tools.


d the local computer folder (named your computer name), expand the Web Sites folder,
expand the Default Web Site folder.


Right click the Default Web Site folder, and select New
>Virtual Directory. The virtual
directory creation wizard will start. Click

next, and type in ThresholdCryptoService for the
directory alias. Click next, then
browse to and select the folder where you copied the
ThresholdCryptoService directory in step 1. Click next, then
check Read and Run Scripts, then
click next, then click

You have created a new virtual directory which should be
accessible at
. Test it
and see if it

works. You should get a Threshold Cryptography Service page.


Copy all VS2005
files from

~/gsc/pub/bswilson/src/VS2005 into a directory on a
Windows machine with VS2005 installed.


Copy the gmp.dll file into %system root%


Open the Threshol
dCryptoService.sln file from VS2005.

You should now be able to
build/debug and view the source code from VS 2005


Click Debug
>Start Debugging to kick off the CryptoServiceTester in debug mode.


In the CryptoServiceTester form, select the key size (at this
time 512 bits or less is
recommended due to the time it takes to find safe primes).


Select the number of secret key shares to generate and the threshold value. The threshold value
will range from 0 to the number of shares
1. A value of 0 indicates that
only 1 share is
required to decrypt.


Click “create request” to generate a request for the web service. A message will be printed in
the status window indicating that the request was generated.


Click “send request” to send the request for the Paillier para
meters to the web service.


After a short delay (up to 30 seconds for a key length of 512 bits), a message will be printed in
the status window indicating that the parameters were received.


At the current state of the project, both the public and secret par
ameters are received and used
for testing the encryption and decryption functions


Once the parameters have been received, type in a short message (less than the number of bits
in the keysize), and click encrypt. The message will be encrypted using the pub
lic key received
from the web service and displayed in the status window.


Click decrypt. The encrypted string will be decrypted using the first t+1 key shares received
back from the service. The resulting clear text will be printed to the status window.