Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeOpcUa/python-opcua
/ encrypt_rsa15
Function
encrypt_rsa15
opcua/crypto/uacrypto.py:95–100 ·
view source on GitHub ↗
(public_key, data)
Source
from the content-addressed store, hash-verified
93
94
95
def
encrypt_rsa15(public_key, data):
96
ciphertext = public_key.encrypt(
97
data,
98
padding.PKCS1v15()
99
)
100
return
ciphertext
101
102
103
def
decrypt_rsa_oaep(private_key, data):
Callers
nothing calls this directly
Calls
1
encrypt
Method · 0.45
Tested by
no test coverage detected