Working with asymmetric public key

Aspose.Words REST API includes a GetPublicKey method that allows developers to retrieve the public key for an asymmetric encryption algorithm. The public key is returned in the form of a string, which can then be used to encrypt data.

Asymmetric encryption uses two different keys, a public key and a private key. The public key can be shared with anyone and is used to encrypt data, while the private key is kept secret and is used to decrypt data.

Get asymmetric public key REST API

Server Method Endpoint
https://api.aspose.cloud/v4.0 GET /words/encryption/publickey

Get asymmetric public key usage examples

Let’s look at practical examples of using the web service. You can do this both with cURL and Postman utilities, and from your code in various programming languages: Python, Java, JavaScript, C#, PHP, C++, Go, Ruby, Swift, Dart.

How to get asymmetric public key with cURL or Postman

One of the easiest and fastest ways to call a REST API is to use cURL or Postman:

How to get asymmetric public key in Python, Java, C#, C++, JavaScript and other programming languages

Using SDK is the quickest way to speed up the development. Please take a look at the provided code examples to quickly call this web service from your favourite programming language:

See Also

  • GitHub repository — explore Aspose.Words Cloud SDK Family. These software libraries take care of all low-level document-processing details.