2021-10-24 11:46:30 -04:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 21:41:37 -05:00
|
|
|
/**
|
|
|
|
** \defgroup bcrypt_js bCrypt
|
|
|
|
** Exposes bcrypt to script, where it is used for hashing and verifying
|
|
|
|
** passwords.
|
|
|
|
** @{
|
|
|
|
*/
|
|
|
|
|
2024-03-04 12:23:00 -05:00
|
|
|
/** A JS context. */
|
2023-05-21 17:36:51 -04:00
|
|
|
typedef struct JSContext JSContext;
|
2021-10-24 11:46:30 -04:00
|
|
|
|
2024-03-04 12:23:00 -05:00
|
|
|
/**
|
|
|
|
** Register the bcrypt script interface.
|
|
|
|
** @param context The JS context.
|
|
|
|
*/
|
2021-10-24 11:46:30 -04:00
|
|
|
void tf_bcrypt_register(JSContext* context);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|