Function: useEncrypt()
useEncrypt(
plainText,salt?):Promise<string>
Defined in: src/core/services/generator.service.ts:213
Parameters
plainText
string
The text to hash.
salt?
string
Optional hex salt.
Returns
Promise<string>
"salt:hashHex".
Deprecated
Use useHash — this is PBKDF2 hashing, not encryption.
Example
import { useHash } from "katanakit-js";
const digest = await useHash("secret");