Cipher

I see you have now added support for Cipher. I have been using the open SSL plugin to use CIpher.

local openssl = require “plugin.openssl”

local cipher = openssl.get_cipher ( “aes-256-cbc” )

And also needing this

local mime = require ( “mime” )

Which (SSL plugin) needs adding to build.settings unless that has changed. As we do not use build settings, how can I use this?

Thanks

Rob

We actually don’t support plugins on WP8 yet.  We will in the future, but we don’t have an ETA for that.

You’ll have to implement this yourself at the moment via C#.  Microsoft provides .NET classes which *might* give you the encryption algorithms you need to do this.  I say *might* because Microsoft doesn’t offer all of the .NET cryptography classes on WP8 that they normally provide on desktop Windows.

   http://msdn.microsoft.com/en-us/library/system.security.cryptography(v=vs.110).aspx

You can communicate between Lua and C# as documented here…

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-interop-communications

Regarding the “mime” Lua library, we already support this on WP8.  In fact, we document which APIs that we currently support on WP8 here…

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-apis-supported

I hope this helps.

Okay. It will be a headache for now for me so I will hold on for plugins. 

Thanks

Just curious.  Would you mind telling me what ssl/crypto/hashing features that you currently require?

Sure. This is all I am using at the mo:

local openssl = require “plugin.openssl”

local cipher = openssl.get_cipher ( “aes-256-cbc” )

local mime = require ( “mime” )

deviceID =(anynumber)

local encryptedData = mime.b64 ( cipher:encrypt ( contents, deviceID ) )  

or 

 local decryptedData = cipher:decrypt ( mime.unb64 ( contents ), deviceID )

Hmm… I’ve noticed that the WP8 .NET framework supports the AES algorithm, but it does not support setting the cypher mode.  Although, I’m curious if CBC is the default.

   http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx

I’m not personally fussed with what mode, as long as it does the job of encrypt and decrypt.

We actually don’t support plugins on WP8 yet.  We will in the future, but we don’t have an ETA for that.

You’ll have to implement this yourself at the moment via C#.  Microsoft provides .NET classes which *might* give you the encryption algorithms you need to do this.  I say *might* because Microsoft doesn’t offer all of the .NET cryptography classes on WP8 that they normally provide on desktop Windows.

   http://msdn.microsoft.com/en-us/library/system.security.cryptography(v=vs.110).aspx

You can communicate between Lua and C# as documented here…

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-interop-communications

Regarding the “mime” Lua library, we already support this on WP8.  In fact, we document which APIs that we currently support on WP8 here…

   http://docs.coronalabs.com/daily/coronacards/wp8/index.html#lua-apis-supported

I hope this helps.

Okay. It will be a headache for now for me so I will hold on for plugins. 

Thanks

Just curious.  Would you mind telling me what ssl/crypto/hashing features that you currently require?

Sure. This is all I am using at the mo:

local openssl = require “plugin.openssl”

local cipher = openssl.get_cipher ( “aes-256-cbc” )

local mime = require ( “mime” )

deviceID =(anynumber)

local encryptedData = mime.b64 ( cipher:encrypt ( contents, deviceID ) )  

or 

 local decryptedData = cipher:decrypt ( mime.unb64 ( contents ), deviceID )

Hmm… I’ve noticed that the WP8 .NET framework supports the AES algorithm, but it does not support setting the cypher mode.  Although, I’m curious if CBC is the default.

   http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx

I’m not personally fussed with what mode, as long as it does the job of encrypt and decrypt.

Is there any news on this front since the last post? Just wondered if cipher support had been added before I try and do it myself.  

@Rob…  did you ever manage to find a way to use it?

No news on Corona Labs’ end.  Your only option at the moment is to use the .NET cryptography classes I’ve posted up above to get cipher support.

I didnt bother trying to be honest. Im still testing the water with what works on the store. 

I might just make something up my own though if I get time. 

Is there any news on this front since the last post? Just wondered if cipher support had been added before I try and do it myself.  

@Rob…  did you ever manage to find a way to use it?

No news on Corona Labs’ end.  Your only option at the moment is to use the .NET cryptography classes I’ve posted up above to get cipher support.

I didnt bother trying to be honest. Im still testing the water with what works on the store. 

I might just make something up my own though if I get time.