代码改变世界

随笔档案-2011年12月

How To Safely Store A Password

2011-12-24 03:59 by OntheMars, 252 阅读, 收藏,
摘要: 自己的密码也被csdn泄露了,这几天改密码改的不亦乐乎。转一篇如何存储密码的文章http://codahale.com/how-to-safely-store-a-password/.自己也学习一下How To Safely Store A Password31 Jan 2010Use bcryptUse bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt.Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, 阅读全文

Add Two Numbers

2011-12-23 10:12 by OntheMars, 276 阅读, 收藏,
摘要: First post here, : )Problem Add Two Numbers from http://www.leetcode.com/onlinejudgeYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.Input: ( 阅读全文