함수 crypt()

Jmnote (토론 | 기여)님의 2014년 11월 14일 (금) 16:34 판 (→‎Bash)
함수 crypt

1 Bash

perl -e "print crypt('hello','salt');"
# saPPmoXIbs91M

2 Perl

print crypt("hello", "salt")
# saPPmoXIbs91M

3 PHP

echo crypt('hello');
// $1$4pyfvgn7$gcsTc.jJaeIfQ3G7NR9S/1
// $1$HCN5kPej$z8iETfrCg7jqDF4C1Pofy/
// $1$H8O5k4aJ$sudXGlbsUzhPTcXekMqM61

echo crypt('hello', 'salt');
// saPPmoXIbs91M

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}