|
|
|
@ -12,7 +12,7 @@ class EncryptedStringField(BaseField): |
|
|
|
|
|
|
|
|
|
def __init__(self, **kwargs): |
|
|
|
|
|
|
|
|
|
self.keyPair = RSA.importKey(open("privkey.pem").read()) |
|
|
|
|
self.keyPair = RSA.importKey(open(current_app.config.get('priv_key_path')).read()) |
|
|
|
|
|
|
|
|
|
super().__init__(**kwargs) |
|
|
|
|
|
|
|
|
|