Skip to content

Commit

Permalink
titanium sdk update
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Apr 20, 2017
1 parent c61dce2 commit 3b64c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0
apiversion: 2
version: 2.0
apiversion: 3
description: Asymmetric Encryption with RSA (private/public key)
author: Michael Gangolf
license: Apache License, Version 2.0
Expand All @@ -15,5 +15,5 @@ name: ticrypt
moduleid: miga.ticrypt
guid: 1d15a606-10d8-4268-b98c-c8be463e2d7e
platform: android
minsdk: 4.1.0.GA
architectures: armeabi armeabi-v7a x86
minsdk: 6.0.0.GA
architectures: armeabi-v7a x86
2 changes: 2 additions & 0 deletions android/src/miga/ticrypt/TiCryptModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.SecureRandom;

@Kroll.module(name = "Ticrypt", id = "miga.ticrypt")
public class TiCryptModule extends KrollModule {
Expand All @@ -32,6 +33,7 @@ public TiCryptModule() {
KrollDict arg = new KrollDict();

try {
SecureRandom secureRandom = new SecureRandom();
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(1024);
KeyPair kp = kpg.genKeyPair();
Expand Down

0 comments on commit 3b64c32

Please sign in to comment.