dhcgn / SuperDuperGoCrypto

Never never use this! Encryption with (maybe) post-quantum cryptography safe supersingular isogeny and X448 key exchange and ChaCha20-Poly1305 AEAD for symmetric encryption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SuperDuperGoCrypto

NEVER never use this anywhere! Just for fun!

CircleCI Go Report Card

Encryption with post-quantum cryptography safe supersingular isogeny and X448 key exchange and ChaCha20-Poly1305 AEAD for symmetric encryption.

Set-Location C:\Dev\SuperDuperGoCrypto\debug

Remove-Item *.json

.\file.exe -GenerateKeyPair -PrivateKeyFile="private1.json"
.\file.exe -ExtractPublicKey -PrivateKeyFile="private1.json" -PublicKeyFile="public1.json"

.\file.exe -GenerateKeyPair -PrivateKeyFile="private2.json"
.\file.exe -ExtractPublicKey -PrivateKeyFile="private2.json" -PublicKeyFile="public2.json"

Set-Content -Value "Hallo World!" -Path plain.txt
.\file.exe -Encrypt -PublicKeyFile="public1.json" -PlainFile plain.txt -CipherFile cipher.json
.\file.exe -Decrypt -PrivateKeyFile="private1.json" -PlainFile plain_decrypted.txt -CipherFile cipher.json

Write-Host ("Plain:   {0}" -f (Get-Content plain.txt))
Write-Host ("Decrypt: {0}" -f (Get-Content plain_decrypted.txt))

if ((Get-Content plain.txt) -eq (Get-Content plain_decrypted.txt)) {
    Write-Host "OK" -ForegroundColor Green
}else {
    Write-Host "Error" -ForegroundColor Red
}

About

Never never use this! Encryption with (maybe) post-quantum cryptography safe supersingular isogeny and X448 key exchange and ChaCha20-Poly1305 AEAD for symmetric encryption.


Languages

Language:Go 77.9%Language:PowerShell 22.1%