|
rsaPassword : function( password , fuc , action ){
action = action ? action : 'app' ;
_post(['Ucommon', 'get_rsa_public_key' , action ], {}, function(ret){
fuc( _f.rsaEncrypt( password , ret.rsa_public ) );
})
} ,
/**
* rsa 异步加密
* @param {[type]} password 原始密码
* @param {[type]} fuc 回调函数
* @Return {[type]} [description]
*/
rsaPasswordArr : function( password , fuc ){
_post(['Ucommon', 'get_rsa_public_key'], {}, function(ret){
var fucBack = [];
for( var i in password ){
var D = password;
fucBack[fucBack.length] = _f.rsaEncrypt( D , ret.rsa_public ) ;
}
// console.log( fucBack );
fuc( fucBack );
})
} ,
icon : {
def : 'fa-check-circle' ,
notdef : 'fa-circle-thin',
}
}
|
|