Welcome, Guest
Please Login or Register.    Lost Password?

Text Ciphering
(1 viewing) (1) Guest
Convertigo Products
This is the place to ask questions, request for enhancements and more generally discuss about Convertigo products.
Go to bottomPage: 1
TOPIC: Text Ciphering
#82
Text Ciphering 1 Year, 9 Months ago Karma: 0
There is a public solution:

na1.salesforce.com/_ui/selfservice/pkb/P...3D1%26t%3D4&ps=1

That discusses text ciphering for transmission of sensitive strings (passwords, etc.). I assume this idea is to use the ciphering so that the sensitive string do not show up as plain text in the URLs?

www.i-cubed.com/convertigo/projects/MyPr...ansaction=login&user=OHNOMYUSER&password=OHNOMYPASSWORD

I understand that we can use context.decodeFromHexString(myString) within the JavaScript of a 'Simple Statement' statement object within our transactions to decode strings once they have reached the server.

My question is, how to we get access to context.encodeToHexString(myString) in our client code?

I'm delivering an AJAX site via a 'dummy' transaction in Convertigo that renders my own .xsl that includes my custom .js files. Is there a particular .js file that I could include to gain access to the ciphering logic? I would think that this context object is probably not available.
adam.brenneis
Junior Boarder
Posts: 36
graph
User Offline Click here to see the profile of this user
Location: Raleigh, NC Birthday: 11/11
The administrator has disabled public write access.
 
#85
Re:Text Ciphering 1 Year, 9 Months ago Karma: 1
Hi Adam,

You don't have client side access to the Convertigo context object.
Encode/Decode methods of the context object is for known values that will not change. For example, the values are ciphered locally via Convertigo and then placed in your client page to ensure they are not 'readable' when transmitted. This solution is not relevant when you want to securely transmit user/password or changing parameters to Convertigo.

What you can do:

_ Add a simple JS algorithm both client and server side to encode/decode data. 'JS encode' function is client side and 'JS decode' function stands in a 'Simple statement' of the transaction. This is a weak solution because 'JS encode' function is public and could be reverse engineered. An asymmetric algorithm would be more secure, I know there are free and open JS implementation on the net.

In the future, Convertigo would implement an asymmetric cryptography algorithm (public/private keys) and would provide a js file to use by client code. To be confirmed.
gregoV
QA & Support
Convertigo Team
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Orsay Birthday: 04/04
The administrator has disabled public write access.
 
#87
Re:Text Ciphering 1 Year, 9 Months ago Karma: 0
Is it possible to send Convertigo variables via POST parameters instead of GET URL parameters?

This is not as useful if your dashboard only supports embedding the mashable as a single URL; but if you are building a more advanced client, the POST parameters seem like they could be more secure?
adam.brenneis
Junior Boarder
Posts: 36
graph
User Offline Click here to see the profile of this user
Location: Raleigh, NC Birthday: 11/11
The administrator has disabled public write access.
 
#88
Re:Text Ciphering 1 Year, 9 Months ago Karma: 1
You are right and i completely forgot to mention that possibility. You can, of course, send your data via a POST form to Convertigo that will automatically detects the type of the method used. You can also mix methods although it is not recommended.

For example, an HTML form :

Code:

<form name="Form1" action=".cxml" method="post">
<input type="text" name="user" value="">
<input type="password" name="password" value="">
<input type="submit" name="submit" value="Connect!">

<input type="hidden" name="__connector" value="myC8oConnector">
<input type="hidden" name="__transaction" value="myC8oTransaction">
</form>



You can use "__sequence" verb instead of transaction to execute a Convertigo sequence.
You may found some more information on the Convertigo Wiki.
gregoV
QA & Support
Convertigo Team
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Orsay Birthday: 04/04
The administrator has disabled public write access.
 
#91
Re:Text Ciphering 1 Year, 9 Months ago Karma: 0
Some Base64 encoding and switching to POSTs instead of GETs (very easy w/ Convertigo!) makes my connector much more reasonable from a security aspect I think.

One problem I had though was having to paste my Base64 decoding methods into several 'Simple Statement' transaction statements. Is possible to add functions to a globally included script so that they are automatically available for each statement?

I tried this with scriptlib.js, but did not have success.
adam.brenneis
Junior Boarder
Posts: 36
graph
User Offline Click here to see the profile of this user
Location: Raleigh, NC Birthday: 11/11
The administrator has disabled public write access.
 
#92
Re:Text Ciphering 1 Year, 9 Months ago Karma: 1
You may read my new "Convertigo's Tips n Tricks" post about code sharing

Edit: re-formulated the sentence.
gregoV
QA & Support
Convertigo Team
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Orsay Birthday: 04/04
Last Edit: 2010/08/04 07:37 By gregoV.
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: elodiee