Smartface IS安全数据字段不起作用

时间:2015-08-05 13:15:03

标签: database encryption smartface.io

我创建了一个本地表并插入了一些数据。只要我不对字段使用is secure,一切正常。但是当我对某些字段使用is secure时,我只会获得这些字段的加密文本。似乎缺少解密功能。怎么解决这个问题?

访问我使用的字段:

var field_value = Data.execute("select f3 from Testtable where rowid = 3;");
alert("Row 3:" + field_value);

1 个答案:

答案 0 :(得分:0)

实际上,如果您尝试使用这种sql execute语句,则应该获取加密值,无论选择多少行作为isSecure。 我的意思是,如果有一个isSecure字段,它应该始终被视为加密。选择某些行作为inSecure或所有行作为inSecure,不应更改任何内容。

Smartface App Studio的新版本现已上市。 (http://account.smartface.io/Account/Login?ReturnUrl=%2F

我测试了你的情况,它适用于这个新版本。

顺便说一句,如果您想要达到表中的实际值,请尝试以下代码:

Data.myDataset.move(2);  //Lets reach the same row you wrote above with move
alert("Row 3 : " + Data.myDataset.f3);

您应该编写数据集的名称而不是myDataset。