Skip to content

Commit

Permalink
feat: rsa encryption init
Browse files Browse the repository at this point in the history
  • Loading branch information
BukiOffor committed Mar 22, 2024
1 parent 14adb59 commit d764012
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
from pathlib import Path
import sys
from flask import Flask
import iop_python as iop
path_root = Path(__file__).parents[2]
sys.path.append(str(path_root))

from keys.main import load_priv_key, load_pub_key

app = Flask(__name__)

@app.route('/')
def hello_world():
priv_key = load_priv_key("keys/private.pem")
pub_key = load_pub_key("keys/public.pem")
print(priv_key)
print(pub_key)
return iop.generate_phrase()

if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
app.run(host='0.0.0.0', port=8080, debug=True)

0 comments on commit d764012

Please sign in to comment.