作业帮 > 高中作文 > 教育资讯

简单好看的手势密码

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/02 11:34:08 高中作文
简单好看的手势密码高中作文

篇一:手势密码够安全吗?

As more people use smart phones or tablets to pay bills, make purchases, store personal information and even control access to their houses, the need for robust password security has become more critical than ever. A new

Rutgers University study shows that free-form gestures -- sweeping fingers in shapes across the screen of a smart phone or tablet -- can be used to unlock phones and grant access to apps. These gestures are less likely than

traditional typed passwords or newer "connect-the-dots" grid exercises to be observed and reproduced by "shoulder surfers" who spy on users to gain unauthorized access.

"All it takes to steal a password is a quick eye," said Janne Lindqvist, one of the leaders of the project and an assistant professor in the School of

Engineering's Department of Electrical and Computer Engineering. "With all the personal and transactional information we have on our phones today, improved mobile security is becoming increasingly critical."

Lindqvist believes this is the first study to explore free-form gestures as passwords. The researchers will publish their findings in June as part of the proceedings of MobiSys '14, an international conference in mobile computing.

In developing a secure solution to this problem, Lindqvist and the other researchers from Rutgers and collaborators from Max-Planck Institute for Informatics, including Antti Oulasvirta, and University of Helsinki studied the practicality of using free-form gestures for accessauthentication(证明,鉴定). With the ability to create any shape in any size and location on the

screen, the gestures had an inherent appeal as passwords. Since users create them without following a template, the researchers predicted these gestures would allow for greater complexity than grid-based gestures offer.

"You can create any shape, using any number of fingers, and in any size or location on the screen," Lindqvist said. "We saw that this security protection option was clearly missing in the scientific literature and also in practice, so we decided to test its potential."

To do so, the researchers applied a generate-test-retest paradigm where 63 participants were asked to create a gesture, recall it, and recall it again 10 days later. The gestures were captured on a recognizer system designed by the team. Using this data, the authors tested the memorability of free-form gestures and invented a novel method to measure the complexity and accuracy of each gesture using information theory. Their analysis

demonstrated results favorable to user-generated, free-form gestures as passwords.

To put their analysis to practice, the Rutgers researchers then had seven computer science and engineering students, each with considerable

experience with touchscreens, attempt to steal a free-form gesture password by shoulder surfing. None of the participants were able to replicate the gestures with enough accuracy, so while testing is in its preliminary stages, the gestures appear extremely powerful against attacks. While widespread adaptation of this technology is not yet clear, the research team plans to continue to analyze the security and management of free-form passwords in the future.

更多英语阅读:

商务英语学习资料

篇二:手机手势密码忘记怎么办

手机手势密码已成为每一个人必用的开锁保护功能,但你想过吗?设

置好的密码忘记了,怎么办?特别是小孩子玩平板,设置了手势密码过了一段时间再玩时开不了了,怎么办?刷机?没那么容易,教你一个更简单的方法:

百度搜索刷机精灵,找到官方点击打开。

进入官网后可以看到软件下载链接,点击下载软件。

下载完成后点击安装,并打开软件。

打开刷机精灵,可以看到提示:让你用数据线连接手机,请用数据线

把手机和电脑连接。连接成功后页面会提示你连接成功。

连接成功后,在页面下部可以看到“找回锁屏密码”,点击打开。

此时页面出现九宫格,右下角点击“找回锁屏密码”。

此时电脑开始尝试找回,找回成功后在九宫格上方提示”恭喜找回“。

此时大功告成。

只可以找回锁屏密码哦。

篇三:【无限互联】IOS开发之手势密码的实现

手势密码解析

代码结构:

GesturePasswordView ?用以?首?页布局

GesturePasswordButton ?用以设置按钮效果

GesturePasswordController ?用以实现各个功能模块

KeychainItemWrapper ?用以保存密码信息

TentacleView ?用以设置输?入密码时的线条效果并接受?手势事件

代码分析:

密码?首?页布局:GesturePasswordView通过循环九个button排列出?手势密码区,所有的button都存?入buttonArray数组当中,并添加了?一个 state Label类 ?用以显?示提?示信息 [objc] view plaincopy 1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15. - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; //?首?页密码视图布局if (self) { // Initialization code buttonArray = [[NSMutableArray alloc]initWithCapacity:0]; view = [[UIView alloc]initWithFrame:CGRectMake(frame.size.width/2-160, frame.size.height/2-80, 320, 320)]; //创建密码键盘?小视图 0-9for (int i=0; i<9; i++) { NSInteger row = i/3;NSInteger col = i%3;// Button Frame //设置?小视图Frame NSInteger distance = 320/3; NSInteger size = distance/1.5; //每个?小视图间的空隙 NSInteger margin = size/4; GesturePasswordButton * gesturePasswordButton = [[GesturePasswordButton allo

c]initWith

17.

18.

19.

20.

21.

22.

23.

24.

25.

26.

27.

28.

29.

30.

31.

32.

33.

34.

35.

36.

37.

38.

39.

40.

41.

42.

43.

44.

45.

46.

47. //把?小视图添加到View视图 [view addSubview:gesturePasswordButton];//将视图属性存?入数组 [buttonArray addObject:gesturePasswordButton];} frame.origin.y=0; [self addSubview:view]; tentacleView = [[TentacleView alloc]initWithFrame:view.frame]; //将buttonArray中的View 传给 tentacleView 中得//实现代理 [tentacleView setTouchBeginDelegate:self];[self addSubview:tentacleView]; //布局屏幕第?一个圆形视图 imgView = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width/2-35[imgView setBackgroundColor:[UIColor whiteColor]]; //设置圆形视图 [imgView.layer setCornerRadius:35]; [imgView.layer setBorderColor:[UIColor grayColor].CGColor];[imgView.layer se[self addSubview:imgView]; //创建Label ?用以打印?手势信息 state = [[UILabel alloc]initWithFrame:CGRectMake(frame.size.width/2-140, fra[state setTextAlignment:NSTextAlignmentCenter];[state setFont:[UIFont systemforgetButton = [[UIButton alloc]initWithFrame:CGRectMake(frame.size.width/2-[forgetButton.titleLabel setFont:[UIFont systemFontOfSize:14]]; [forgetButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNorm[forgetButton addTarget:self action:@selector(forget) forControlEvents:UIConDown]; [self addSubview:forgetButton]; changeButton = [[UIButton alloc]initWithFrame:CGRectMake(frame.size.width/2+[changeButton.titleLabel setFont:[UIFont systemFontOfSize:14]]; [changeButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNorm[changeButton addTarget:self action:@selector(change) forControlEvents:UIConuchDown]; [self addSubview:changeButton]; swordButton setTag:i]; buttonArray[tentacleView setButtonArray:buttonArray]; , frame.size.width/2-80, 70, 70)]; tBorderWidth:3]; me.size.height/2-120, 280, 30)]; FontOfSize:14.f]];[self addSubview:state]; 150, frame.size.height/2+220, 120, 30)]; al];[forgetButton setTitle:@"忘记?手势密码" forState:UIControlStateNormal]; trolEventTouch 30, frame.size.height/2+220, 120, 30)]; al];[changeButton setTitle:@"修改?手势密码" forState:UIControlStateNormal]; trolEventTo

49.

50.

return self; } ?页没有使用图?片,?面可以通过view?己添加并且通过keychain做的数据持久化,利?用苹果官方KeychainItemWrapper类keychain存储的数据不会因为删除app?而清除记录,请调?用-(void)clear清除储存密码。代码如下:

[objc] view plaincopy 1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14. - (BOOL)resetPassword:(NSString *)result{ if ([previousString isEqualToString:@""]) { previousString=result; [gesturePasswordView.tentacleView enterArgin]; [gesturePasswordView.state setTextColor:[UIColor colorWithRed:2/255.f green:174/255.f blue: 240/255.f alpha:1]]; [gesturePasswordView.state setText:@"请验证输?入密码"];return YES; }//保存密码信息到本地else { if ([result isEqualToString:previousString]) { KeychainItemWrapper * keychin = [[KeychainItemWrapper alloc]initWithIdentifie" accessGroup:nil]; [keychin setObject:@"<帐号>" forKey:(__bridge id)kSecAttrAccount]; [keychin setObject:result forKey:(__bridge id)kSecValueData]; //[self presentViewController:(UIViewController) animated:YES completion:niler:@"Gestur ];[gesturePasswordView.state setTextColor:[UIColor colorWithRed:2/255.f green:174/2

55.f blu

15.

16.

17.

18.

19.

20.

21.

22.

23.

e:240/255.f alpha:1]]; [gesturePasswordView.state setText:@"已保存?手势密码}]; return YES; }else{ previousString =@""; [gesturePasswordView.state setTextColor:[UIColor redColor]];[gesturePassword}} } "];[self dismissViewControllerAnimated:YES completion:^{ View.state setText:@"两次密码不?一致,请重新输?入"];return NO;

清除本地密码信息: [objc] view plaincopy 1.

2.

3.

4. #pragma mark - 清空记录 - (void)clear{ KeychainItemWrapper * keychin = [[KeychainItemWrapper alloc]initWithIdentifier:@"Gesture" accessGroup:nil]; [keychin resetKeychainItem];-serif;">}

主要实现原理:

1. 在GesturePasswordView中导?入GesturePasswordButton.h ?用通过计算坐标循环遍历九个button排列出?手势密码区,且添加tag,还添加了?一个 state Label类?用以显?示提?示信息(上图有述)

2. 在GesturePasswordView中通过GesturePasswordButton.h?用来设置各个button的效果

3. 在TentacleView通过- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event接受?手 势触摸事件(代码如下)

[objc] view plaincopy 1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

emp. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ CGPoint touchPoint; UITouch *touch = [touches anyObject];[touchesArray removeAllObjects];[touchedArray removeAllObjects];[touchBeginDelegate gestureTouchBegin];success=1; if (touch) { touchPoint = [touch locationInView:self];for (int i=0; i

13. 14.

15.

16.

17.

18.

19.

origin.y+frameTemp.size.height/2); NSDictionary * dict = [NSDictionary dictionaryWithObjectsAndKeys:[NSString smat:@"%f",point.x],@"x",[NSString stringWithFormat:@"%f",point.y],@"y", nil lineStartPoint = touchPoint;} [buttonTemp setNeedsDisplay];} [self setNeedsDisplay];} } tringWithFor nil];[touchesArray addObject:dict];

当?手指在屏幕上移时,就会调?用- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event?方法,计算出?手势触摸过的button的信息并保存到数组中

[objc] view plaincopy 1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

i]]; //手势移动 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ CGPoint touchPoint; UITouch *touch = [touches anyObject]; if (touch) { touchPoint = [touch locationInView:self]; for (int i=0; i

[buttonTemp setSelected:YES];

[buttonTemp setNeedsDisplay];

CGRect frameTemp = buttonTemp.frame;

CGPoint point = CGPointMake(frameTemp.origin.x+frameTemp.siz NSDictionary * dict = [NSDictionary dictionaryWithObjectsAnd@"num%d",i]]) { 16. 17. 18. 19. 20. e.width/2,frameTemp.origin.y+frameTemp.size.height/2);

Keys:[NSString stringWithFormat:@"%f",point.x],@"x",[NSString stringWithFormat:@"%f",point.y],@"y",[NSString stringWithFormat:@"%d",i],@"num", nil nil]; 21. [touchesArray addObject:dict];

篇四:手势密码

篇五:FBI 破不了的手势密码,真的那么安全吗?

FBI 破不了的手势密码,真的那么安全吗?

FBI 在法院文书中提到,法院专家用多种方法尝试解锁一台 Samsung Exhibit II,未果。 文章后面的故事在此不表,重要的是,它给我植入了“手势密码极度安全”这个印象。后来指纹解锁逐渐成为主流,但陈昊最近一篇文章又指出,指纹解锁的安全性出现了新的问题。那么,退回手势密码是否是安全上策?

不一定!

人喜欢偷懒

挪威科技大学的 Marte L?ge 在研究生毕业论文中对这个问题进行了研究,分析了 4000 多个 ALP(手势密码),发现这些密码有着惊人的相似性。这些 ALP 中,44% 从最左边的点开始,77% 从四个角开始。另外人们并没有将 9 个点充分运用上,平均连接仅有 5 个点,意味着只有 900

简单好看的手势密码

0 种可能性。用 4 个点的用户也不少,他们的密码仅有 1624 种可能。

人类是可预测的。

研究过程中,L?ge 让志愿者各自设置 3 个 ALP:一个用于购物应用,一个用于银行应用,一个用于解锁手机。结果大部分人都选择使用最基本的 4 位解锁图案。出于某种原

因 8

位密码的使用频率最低,过半数人选择使用 4-5 位的 ALP。

人们对短密码的偏好很好理解,短的好记嘛。当然这点上还存在性别差异,女性似乎更喜欢“偷懒”,男性则更倾向于使用较长的密码。下图是男性与女性设置的密码长度对比:

除了长度,男性还更倾向于将密码设置得更复杂,例如 2,3,1 的组合,就比 1,2,3, 的组合复杂性更高,因为前者组合改变了数字的“方向”。在 L?ge 的试验中,没有任何一位女性使用了这种“调头”的密码。

最好破解 VS 最难破解

文本密码中,“1234567”、“password”恐怕谁都用过,恰恰这些密码也是最容易破解的密码组合。 人们在设置手势密码时同样遵循着这种“偷懒”的习惯,超过 10% 的受试者的起点都与配偶、小孩、宠物的名字相关。假如心怀不轨者掌握了相关信息,并猜到了第一个字,破解密码的难度就会大大降低。

设密码或许是最反人性的一项工作。复杂性多半会难倒自己,不复杂的话又有安全隐患。其实最复杂的密码就是随机密码,“但人类大脑先天注定无法产生随机内容”(语自大学的统计学教授)。

回到文初提到的“FBI 无法破解 Android 手势密码”,而 L?ge 又说手势密码很脆弱,歧视也不完全矛盾。不清楚当时 FBI 的破解手段,但光谈密码机制,Android ALP 本身是很安全的,至少比纯数字的密码要安全的多。L?ge 的研究是从心理学的角度分析人类使用密码的规律,人性,总归是有破绽的。

高中作文