{"id":18720235,"url":"https://github.com/aidatorajiro/crypto","last_synced_at":"2025-04-12T14:11:24.164Z","repository":{"id":31735940,"uuid":"128732891","full_name":"aidatorajiro/crypto","owner":"aidatorajiro","description":"crypto fun repository","archived":false,"fork":false,"pushed_at":"2023-05-22T16:17:38.000Z","size":1167,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T08:47:39.030Z","etag":null,"topics":["bitcoin","crypto","cryptography","ecdsa","elliptic-curves","ethereum","http2","learning-with-errors","monoalphabetic","pari-gp","postquantum","python","python3","segwit","solidity","ssl","tls13"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aidatorajiro.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}},"created_at":"2018-04-09T07:36:23.000Z","updated_at":"2023-04-01T03:58:21.000Z","dependencies_parsed_at":"2022-08-27T02:57:49.039Z","dependency_job_id":null,"html_url":"https://github.com/aidatorajiro/crypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidatorajiro%2Fcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidatorajiro%2Fcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidatorajiro%2Fcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidatorajiro%2Fcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aidatorajiro","download_url":"https://codeload.github.com/aidatorajiro/crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578877,"owners_count":21127713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitcoin","crypto","cryptography","ecdsa","elliptic-curves","ethereum","http2","learning-with-errors","monoalphabetic","pari-gp","postquantum","python","python3","segwit","solidity","ssl","tls13"],"created_at":"2024-11-07T13:29:57.681Z","updated_at":"2025-04-12T14:11:24.146Z","avatar_url":"https://github.com/aidatorajiro.png","language":"JavaScript","readme":"# my crypto works\n\nMy codes on crypto.\n\n# contents\n\n## Misc\n\n- README.md - this file\n- fft.py - Fast Fourier Transform (WIP)\n- package.json - package.json for `.js` files\n- nanndah.py - key exchange (WIP)\n- shadh.py - key exchange (WIP)\n- general.py - general encryption system\n\n## Elliptic Curve\n\n- EC.sol - ECDSA in JS.\n- EC2.sol - Elliptic Curve compution in Solidity.\n- EC_test.js - Elliptic Curve test file\n- ec.js - Elliptic curve address generation\n- gp.gp - PARI/GP elliptic curve pairing\n- zcash.gp - PARI/GP zcash (WIP)\n- mont_to_wiel.gp - montgomery curve to weierstrass curve\n\n### Python Fullscratch Project\n\nThese python scripts are greatly helped by the stackoverflow post : \u003chttps://stackoverflow.com/questions/31074172/elliptic-curve-point-addition-over-a-finite-field-in-python\u003e. And here: \u003chttps://crypto.stanford.edu/pbc/notes/ep/tate.html\u003e \u003chttps://github.com/herumi/ango\u003e\n\n- fullscratch_pairing_weil.py - fullscratch weil pairing.\n- fullscratch_pairing_tate.py - fullscratch tate pairing.\n- fullscratch.py - fullscratch ECDSA in python.\n- fullscratch_address.py - fullscratch ECDSA address generation in python.\n- fullscratch_elgamal.py - fullscratch EC elgamal in python. (WIP?)\n- fullscratch_mod_elgamal.py - fullscratch EC modified elgamal in python.\n- fullscratch_pairing.py - fullscratch EC pairing in python. (WIP?)\n- fullscratch_takusan.py - fullscratch ECDSA in python (infinite loop).\n- fullscratch_zcash.py - fullscratch zcash in python (WIP)\n- fullscratch_zcash_2.py - fullscratch zcash in python (WIP)\n- fullscratch_zero_prf.py - fullscratch elliptic curve zero knowledge proof in python.\n- projection.py - fullscratch EC addition / multiplication / pairing. Using projection to improve performance.\n\n## Blockchain\n- HomomorphicTransaction.sol - additive homomorphic transaction in solidity\n- HomomorphicTransaction_test.js - additive homomorphic transaction in solidity\n- NestedSign.sol - ECDSA verifier in Solidity. Signed message in signed Ethereum transaction!\n- bech32.js - copy of bech32.js by Pieter Wuille\n- btc_wallet.js - bitcoin wallet\n- eth_wallet.js - Ethereum wallet\n- eth_wallet_2.js - Ethereum wallet (WIP)\n- segwit_addr.js - SegWit address\n- zclib.py - ZCash transaction parse library\n- zcrpc.py - ZCash RPC\n\n## Statistics and Machine Learning over a Finite Field\n- kusa.py - mean, variance, Standard deviation (if exists) in a finite field\n- kusa2.py - polynomial fitting over a finite field, using numpy\n- kusa3.py - polynomial fitting (without loss) over a finite field, pure python Oddly faster than kusa2.py.\n- kusa3.test.py - tests of kusa3.py\n- kusa4.py - polynomial fitting (with loss) over a finite field, pure python (WIP)\n- kusa4.test.py - tests of kusa4.py\n\n## Learning with Error\n- lwe_sugoi.py - Learning with error cryptosystem in python (requires library mpmath).\n\n## Post-Quantum RSA (multi prime RSA)\n- pqrsa.py - key generation\n- pqrsa_decr.py - decrypt\n- pqrsa_decr_2.py - decrypt\n\n## Monoalphabetic Substitution Cryptosystem\n- mono_decr.py - Simple decryptor.\n- mono_kaiseki.py - Count each characters\n- mono_shuukei.py - Count consecutive characters.\n- monosol - Graphical monoalphabetic substitution solver using Vue.js. \u003chttp://aidatorajiro.github.io/crypto/monosol\u003e\n\n### Decrypting Romaji Ciphertext\n- KWDLC - You have to download this from \u003chttps://github.com/ku-nlp/KWDLC\u003e in order to run `mono_kana*.py`.\n- mono_kana_cipher.txt - Ciphertext input for `mono_kana*.py`. You have to create this file.\n  `\"\\n\"` (LF) can be used as a separator.\n- mono_kana_setting.py - Setting for `mono_kana*.py`. You have to create this file.\n  Set the contents to `cipher_char_whitelist = \"\u003call chars that appear in ciphertext\u003e\"`.  \n  `cipher_char_whitelist` must be 23 character length.\n- mono_kana1.py - Count each characters from KWDLC\n- mono_kana2.py - PCA Analysis of neighbor count (separated matrix)\n- mono_kana3.py - PCA Analysis of neighbor count (concatenated matrix)\n- mono_kana4.py - PCA Analysis of neighbor count (separated matrix, use different normalization)\n- mono_kana5.py - PCA Analysis of neighbor count (separated matrix, mono_kana_setting.py not needed)\n\n## TLS 1.3 (X25519, EMSA_PSS_VERIFY, etc.)\n- ssl.gp - fullscratch TLS 1.3 related program (WIP?)\n- ssl2.gp - fullscratch TLS 1.3 related program (WIP?)\n- tls13.py - fullscratch TLS 1.3 related program (WIP?)\n\n## HTTP/2\n\n- muzukasisa.txt - Not actually crypto but obfuscation? Attempt to \"netcat\" (although using openssl so not completely full-scratch) HTTP/2 connection. Not working for now...\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidatorajiro%2Fcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faidatorajiro%2Fcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidatorajiro%2Fcrypto/lists"}