Here’s the quick note on how to insert hash password entry in mysql for FreeRadius environment.
Run insert via linux terminal using this line:
INSERT INTO radcheck (username, attribute, op, password) VALUES('admin','Crypt-Password', ':=', encrypt('test1234'));
Result entry di dalam database :
VALUES('admin','Crypt-Password',':=','YHx56BpoLV0uU');
Notice that the password value is encrypted from ‘test1234‘ becoming ‘YHx56BpoLV0uU‘.
Hashing method yang boleh digunakan di FreeRadius environment.
{clear} User-Password clear-text passwords
{cleartext} User-Password clear-text passwords
{crypt} Crypt-Password Unix-style “crypt”ed passwords
{md5} MD5-Password MD5 hashed passwords
{smd5} SMD5-Password MD5 hashed passwords, with a salt
{sha} SHA-Password SHA1 hashed passwords
{ssha} SSHA-Password SHA1 hashed passwords, with a salt



![Album Art for My Hero [January 1998]](http://userserve-ak.last.fm/serve/64s/69591230.png)
![Album Art for Numb [June 1993]](http://userserve-ak.last.fm/serve/64s/62577349.png)
