GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WillKirkmanM/encryption: Fully Brakerski-Fan-Vercauteren Compliant Homomorphic Encryption Playground Supporting Polynomial Ring Operations, Noise Budgets, Document Indexing with an Encrypted Search Engine, FHE & Small (1024), Medium (2048) & Large (4096) Benchmark Profiles

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
pkg
pkg
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
main.go
main.go
 
 

Repository files navigation

Encryption

Fully Homomorphic Encryption Playground Supporting FHE, Search Engine & Benchmarks

Features

Core FHE Operations

  • BFV Scheme Implementation: Brakerski-Fan-Vercauteren homomorphic encryption
  • Key Generation: Secure public/private key pair generation
  • Homomorphic Operations: Addition and multiplication on encrypted data
  • Noise Management: Gaussian noise for security

Encrypted Search Engine

  • Private Search: Search encrypted documents without revealing queries
  • Term Indexing: Encrypted inverted index for efficient searches
  • Score Ranking: Relevance scoring on encrypted data

Performance Benchmarking

  • Multiple Parameter Sets: Compare different security levels
  • Operation Timing: Measure encryption, decryption, and computation times
  • Memory Usage: Monitor resource consumption

Quick Start

git clone https://github.com/WillKirkmanM/encryption
cd encryption
go run main.go

Architecture

FHE Context (pkg/fhe/context.go)

  • Polynomial ring operations
  • Modular arithmetic
  • Noise budget management
  • Key generation and management

Encrypted Search (pkg/search/encrypted_search.go)

  • Document indexing with encryption
  • Private information retrieval
  • Homomorphic query processing

Security Parameters

Parameter Set Poly Degree Security Level Performance
Small 1024 ~80 bits Fast
Medium 2048 ~128 bits Moderate
Large 4096 ~256 bits Slow

Applications Demonstrated

  1. Private Database Queries: Search without revealing search terms
  2. Secure Computation: Arithmetic on encrypted financial data
  3. Privacy-Preserving Analytics: Statistics on encrypted datasets

Extending the Playground

Adding New Schemes

// Implement different FHE schemes
type BGVContext struct { ... }
type CKKSContext struct { ... } // For approximate arithmetic

Custom Applications

// Add your own encrypted computations
func (ctx *BFVContext) CustomOperation(ct1, ct2 *Ciphertext) (*Ciphertext, error) {
    // Your homomorphic operation here
}

Performance Notes

  • Key Generation: Most expensive operation
  • Multiplication: Increases noise, requires key switching
  • Circuit Depth: Limited by noise budget
  • Parallelisation: Many operations can be vectorized

Integration with Production Libraries

For production use, consider integrating with:

  • Microsoft SEAL (C++ with Go bindings)
  • HElib (C++ library)
  • PALISADE (C++ framework)

Educational Resources

This playground demonstrates:

  • Ring Learning With Errors (RLWE) problem
  • Polynomial modular arithmetic
  • Noise growth in homomorphic operations
  • Trade-offs between security and performance

About

Fully Brakerski-Fan-Vercauteren Compliant Homomorphic Encryption Playground Supporting Polynomial Ring Operations, Noise Budgets, Document Indexing with an Encrypted Search Engine, FHE & Small (1024), Medium (2048) & Large (4096) Benchmark Profiles

Topics

bfvencryptionparsonlabs

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.