fortify2-js
Version:
MOST POWERFUL JavaScript Security Library! Military-grade cryptography + 19 enhanced object methods + quantum-resistant algorithms + perfect TypeScript support. More powerful than Lodash with built-in security.
64 lines (62 loc) • 2.02 kB
JavaScript
;
/**
* Type definitions for the FortifyJS library
*/
/**
* Security level enum
*/
exports.SecurityLevel = void 0;
(function (SecurityLevel) {
SecurityLevel["STANDARD"] = "standard";
SecurityLevel["HIGH"] = "high";
SecurityLevel["MAXIMUM"] = "maximum";
})(exports.SecurityLevel || (exports.SecurityLevel = {}));
/**
* Token type enum
*/
exports.TokenType = void 0;
(function (TokenType) {
TokenType["GENERAL"] = "general";
TokenType["API_KEY"] = "api_key";
TokenType["SESSION"] = "session";
TokenType["JWT"] = "jwt";
TokenType["TOTP"] = "totp";
})(exports.TokenType || (exports.TokenType = {}));
/**
* Hash algorithm enum - can be used as values
*/
exports.HashAlgorithm = void 0;
(function (HashAlgorithm) {
HashAlgorithm["SHA256"] = "sha256";
HashAlgorithm["SHA512"] = "sha512";
HashAlgorithm["SHA3_256"] = "sha3-256";
HashAlgorithm["SHA3_512"] = "sha3-512";
HashAlgorithm["BLAKE3"] = "blake3";
HashAlgorithm["BLAKE2B"] = "blake2b";
HashAlgorithm["BLAKE2S"] = "blake2s";
HashAlgorithm["PBKDF2"] = "pbkdf2";
})(exports.HashAlgorithm || (exports.HashAlgorithm = {}));
/**
* Key derivation algorithm enum
*/
exports.KeyDerivationAlgorithm = void 0;
(function (KeyDerivationAlgorithm) {
KeyDerivationAlgorithm["PBKDF2"] = "pbkdf2";
KeyDerivationAlgorithm["ARGON2"] = "argon2";
KeyDerivationAlgorithm["BALLOON"] = "balloon";
})(exports.KeyDerivationAlgorithm || (exports.KeyDerivationAlgorithm = {}));
/**
* Entropy source enum
*/
exports.EntropySource = void 0;
(function (EntropySource) {
EntropySource["SYSTEM"] = "system";
EntropySource["BROWSER"] = "browser";
EntropySource["USER"] = "user";
EntropySource["NETWORK"] = "network";
EntropySource["COMBINED"] = "combined";
EntropySource["CSPRNG"] = "csprng";
EntropySource["MATH_RANDOM"] = "math_random";
EntropySource["CUSTOM"] = "custom";
})(exports.EntropySource || (exports.EntropySource = {}));
//# sourceMappingURL=types.js.map