API Encryption

Encryption examples using various libraries

When implementing the authentication flow, you'll need to follow careful cryptographic procedures to ensure everything will work properly. The following examples use third party cryptography toolkits for encryption and are free to download. View encryption examples for other libraries by clicking the links to the right.

Other Languages

Python, Ruby, PHP, Java, Objective-C

Library

The following Python encryption examples use the PyCrypto cryptography toolkit.

Python: Encrypt message

Encrypt message using RSA public key with PKCS1-OAEP padding:

Example

Python: Decrypt package

Decrypt a package using RSA private key with PKCS1-OAEP padding:

Example

Python: Sign data

Signing data using RSA private key with PKCS1 v1.5 padding and SHA256 hash:

Example

PyCrypto
M2Crypto
  • No example

Python: Verify signature

Verify a signature using RSA public key with PKCS1 v1.5 padding and SHA256 hash:

Example

PyCrypto
M2Crypto
  • No example

Python: Generate RSA keys

Generate an RSA private and public key pair:

Example

Are you ready to evolve your security beyond the password era?

Get started immediately by downloading the LaunchKey mobile app or by contacting a LaunchKey representative today.

Download Mobile App

Enterprise Sales

Contact Us