Skip to content

ROKT/rokt-encryption-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rokt-encryption-examples

In this repository, some encryption examples provided in different programming languages.

C#

NetCoreEncryptionSample

Golang

GolangEncryptionSample

Java

JavaEncryptionSample

JavaScript

JavaScriptSample-nodeforge

JavaScriptSample-subtlecrypto

NodeJsNodeRsaEncryptionSample

NodeJsNodeForgeEncryptionSample

ReactNativeSample

Kotlin

KotlinEncryptionSample

By default, Rokt provides partners with an RSA public key. To use this key with the above Kotlin encryption example, please first convert your RSA public key to an x.509 public key with the following steps:

  • Ensure that the Base64 section of the key has a line break every 80 characters
  • openssl rsa -pubin -in /tmp/k.rsa -RSAPublicKey_in -inform pem

Swift

SwiftEncryptionSample

License

Please see LICENSE