Skip to content

Instantly share code, notes, and snippets.

@saitenntaisei
saitenntaisei / .commit_template
Created May 11, 2023 08:09 — forked from Jung0/.commit_template
🤘 Emoji prefix to use at commit message
# ==================== Emojis ====================
# 🎉 :tada: 初めてのコミット(Initial Commit)
# 🔖 :bookmark: バージョンタグ(Version Tag)
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bagfix)
# ♻️ :recycle: リファクタリング(Refactoring)
# 📚 :books: ドキュメント(Documentation)
# 🎨 :art: デザインUI/UX(Accessibility)
@saitenntaisei
saitenntaisei / SSSA.sage
Created August 11, 2022 09:29
SSSA attack
p = 16857450949524777441941817393974784044780411511252189319
A = 16857450949524777441941817393974784044780411507861094535
B = 77986137112576
# y^2 = x^3 + A * x + B
tE = EllipticCurve(GF(p), [A, B])
tP = tE(5732560139258194764535999929325388041568732716579308775,
14532336890195013837874850588152996214121327870156054248)
tQ = tE(2609506039090139098835068603396546214836589143940493046,
@saitenntaisei
saitenntaisei / Error program
Last active July 17, 2017 06:56
question: please tell me my friends, why I can not do this program in raspberry pi?
# -*- coding: utf-8 -*-
#マイク0番からの入力を受ける。一定時間(RECROD_SECONDS)だけ録音し、ファイル名:mono.wavで保存する。
import pyaudio
import sys
import time
import wave
import requests
import os
import json