$Crypto¶
$Crypto provides access to cryptographic functions such as $Crypto.Hash, $Crypto.Sign, and $Crypto.Verify.
1 | |
Capabilities¶
Certificates¶
- CryptoInstance.AddCertificate: Adds the specified certificate to the context for later use.
- CryptoInstance.AddTrustedCertificate: Adds the specified certificate as a trusted root certificate.
- CryptoInstance.GetCertificate: Finds a certificate based on the given context.
- CryptoInstance.ListCertificates: Lists all certificates that match the given context.
Signing¶
- CryptoInstance.AttachContentToSignature: Attaches the content to a signature and returns the new file ID.
- CryptoInstance.AttachContentToSignatureFile: Attaches the content to a signature and returns the new file information.
- CryptoInstance.DetachContentFromSignature: Detaches the content from a signature and returns the new file ID of the signature.
- CryptoInstance.MergeSignatures: Merges CAdES-based signatures into a single signed content.
- CryptoInstance.MergeSignaturesFile: Merges CAdES-based signatures into a single signed content.
- CryptoInstance.Sign: Signs the given requests using the specified certificate.
Encryption and Hashing¶
- CryptoInstance.Decrypt: Decrypts the encrypted data with the specified password.
- CryptoInstance.Encrypt: Encrypts the given text with a password.
- CryptoInstance.Hash: Returns the hash of the given content.
Encoding¶
- CryptoInstance.FromBase64: Converts the Base64 encoded string to a string.
- CryptoInstance.ToBase64: Converts the given string to a Base64 encoded string.
Verification¶
- CryptoInstance.Verify: Verifies the specified signature data.
- CryptoInstance.VerifyFile: Verifies the specified signed file.