com.fastchar.security.template.rsa_ios Maven / Gradle / Ivy
+(NSString*) getToken{
NSString *timestamp = [NSString stringWithFormat:@"%@", @([[NSDate date] timeIntervalSince1970] * 1000)];
NSString *key=@"${key}";
NSString *publicKey=@"${publicKey}";
return [RSA encryptString:[NSString stringWithFormat:@"%@%@", key,timestamp] publicKey:publicKey];
}