2 Replies Latest reply on Mar 31, 2012 12:03 PM by Flash275

    How to use flame.crypto on RSA cryptography


      I need to .NET-compatible cryptography and found this library - http://code.google.com/p/flame/source/browse/trunk/flame/src/flame/crypto/RSA.as?spec=svn7 7&r=77

      but my code

      var RSA:flame.crypto.RSA = new flame.crypto.RSA();


      failure on first line:

      ReferenceError: Error #1065: Variable flash.crypto::generateRandomBytes is not defined.

          at flame.crypto::RandomNumberGenerator$/getBytes()

          at flame.crypto::RandomNumberGenerator$/getNonZeroBytes()

          at flame.crypto::RSA/generateKeyPair()

          at flame.crypto::RSA()

      How to use this library on RSA Crypt with OpenKey?