Description Details Author(s) References Examples
This package provides easy to use implementations of some homomorphic encryption schemes. An encryption scheme is said to be homomorphic when certain functions can be applied directly to the cipher text in such a way that decrypting the result renders the same answer as if the function had been applied to the unencrypted data.
Package: | HomomorphicEncryption |
Type: | Package |
Version: | 0.2 |
Date: | 2015-08-19 |
License: | GPL-2 |
Louis Aslett
Maintainer: Louis Aslett <aslett@stats.ox.ac.uk>
Aslett, L. J. M., Esperan<c3><a7>a, P. M. and Holmes, C. C. (2015), A review of homomorphic encryption and software tools for encrypted statistical machine learning. Technical report, University of Oxford.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Generate cryptographic parameters
p <- pars("FandV")
# Create public/private keypair
keys <- keygen(p)
# Encrypt the values 2 and 3
ct1 <- enc(keys$pk, 2)
ct2 <- enc(keys$pk, 3)
# Homomorphically add the cipertexts together
ct <- ct1 + ct2
# Decrypt to 5, the result of applying + to plain messages
dec(keys$sk, ct)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.