git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git]
/
Libraries
/
libposix.so_src
/
unistd_crypt.c
1
/*
2
* Acess2 POSIX Emulation
3
* - By John Hodge (thePowersGang)
4
*
5
* unistd_crypt.c
6
* - crypt(3)
7
*/
8
#include <unistd.h>
9
10
// === CODE ===
11
char *crypt(const char *key, const char *salt)
12
{
13
if( *salt == '$' )
14
{
15
// $x$salt$
16
// x=1 : MD5
17
// x=5 : SHA-256
18
// x=6 : SHA-512
19
}
20
return "YIH14pBTDJvJ6"; // 'password' with the salt YI
21
}
UCC
git Repository :: git.ucc.asn.au