{"id":45181213,"url":"https://github.com/alessandro-nori/crypto_nn","last_synced_at":"2026-03-05T08:01:23.646Z","repository":{"id":184308821,"uuid":"165402606","full_name":"alessandro-nori/crypto_nn","owner":"alessandro-nori","description":"Proof of concept for CryptoDL made for BigSec course @ EURECOM","archived":false,"fork":false,"pushed_at":"2019-05-14T14:56:33.000Z","size":34,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T16:03:17.562Z","etag":null,"topics":["homomorphic-encryption","machine-learning","neural-network"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alessandro-nori.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-12T15:22:58.000Z","updated_at":"2024-05-13T17:13:47.000Z","dependencies_parsed_at":"2023-08-17T23:02:10.755Z","dependency_job_id":null,"html_url":"https://github.com/alessandro-nori/crypto_nn","commit_stats":null,"previous_names":["alessandro-nori-shift/crypto_nn","alessandro-nori/crypto_nn"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/alessandro-nori/crypto_nn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandro-nori%2Fcrypto_nn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandro-nori%2Fcrypto_nn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandro-nori%2Fcrypto_nn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandro-nori%2Fcrypto_nn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alessandro-nori","download_url":"https://codeload.github.com/alessandro-nori/crypto_nn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandro-nori%2Fcrypto_nn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30115662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["homomorphic-encryption","machine-learning","neural-network"],"created_at":"2026-02-20T10:00:30.841Z","updated_at":"2026-03-05T08:01:23.615Z","avatar_url":"https://github.com/alessandro-nori.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Crypto Neural Network\n\nCrypto_nn is a very simple example of neural network that can perform classification over encrypted data using homomorphic encryption.\nThe idea is taken from [CryptoDL: Deep Neural Networks over Encrypted Data](https://arxiv.org/pdf/1711.05189.pdf) by Ehsan Hesamifard, Hassan Takabi, Mehdi Ghasemi where\nyou can find all the details.\n\n## Activation function\nTo use activation functions within HE schemes, they should be approximated in a form which is implemented using only addition and multiplication (e.g. polynomial).\n\nIn this example I simulated the ReLU function as presented in the paper and I obtained the following approximation:\n\n0.0012x\u003csup\u003e2\u003c/sup\u003e + 0.5x + 52\n\n![alt text](https://github.com/ironordnassela/crypto_nn/blob/master/relu/relu_graphic.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandro-nori%2Fcrypto_nn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessandro-nori%2Fcrypto_nn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandro-nori%2Fcrypto_nn/lists"}