Skip to content

ovarene/CryptoPan.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoPan.jl

CryptoPan algo in native julia

Cryptographic algorithm for anonymizing IP addresses while preserving their subnet structure

Install

Via Pkg repo

pkg> add CryptoPan
...

or via github directly

pkg> add https://github.com/ovarene/CryptoPan.jl
...

Usage


julia> using CryptoPan
julia> key="boojahyoo3vaeToong0Eijee7Ahz3yee"
julia> conf = CryptoPanConf(key)
...
julia> ip = "192.0.2.1"
julia> ip_ano = anonymize(ip,conf)
"206.2.124.120"
julia> @assert "206.2.124.120" == ip_ano
true