public static getInstance(algorithm as String) as Signature throws CryptoException:
Compatibility factory for dynamic algorithm selection.
The preferred APIs are RSAPSSSignature(SHA256()) and RSAPKCS1Signature(SHA256()).
| Parameter | Description |
|---|---|
algorithm | Signature algorithm. |
Ready-to-use signature instance.
import klyn.cryptography
signature = Signature.getInstance("SHA256withRSA/PSS")
print(signature.algorithm)