UNPKG

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) 1.95 kB
/** * Type definitions for the FortifyJS library */ /** * Security level enum */ var SecurityLevel; (function (SecurityLevel) { SecurityLevel["STANDARD"] = "standard"; SecurityLevel["HIGH"] = "high"; SecurityLevel["MAXIMUM"] = "maximum"; })(SecurityLevel || (SecurityLevel = {})); /** * Token type enum */ var TokenType; (function (TokenType) { TokenType["GENERAL"] = "general"; TokenType["API_KEY"] = "api_key"; TokenType["SESSION"] = "session"; TokenType["JWT"] = "jwt"; TokenType["TOTP"] = "totp"; })(TokenType || (TokenType = {})); /** * Hash algorithm enum - can be used as values */ var HashAlgorithm; (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"; })(HashAlgorithm || (HashAlgorithm = {})); /** * Key derivation algorithm enum */ var KeyDerivationAlgorithm; (function (KeyDerivationAlgorithm) { KeyDerivationAlgorithm["PBKDF2"] = "pbkdf2"; KeyDerivationAlgorithm["ARGON2"] = "argon2"; KeyDerivationAlgorithm["BALLOON"] = "balloon"; })(KeyDerivationAlgorithm || (KeyDerivationAlgorithm = {})); /** * Entropy source enum */ var EntropySource; (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"; })(EntropySource || (EntropySource = {})); export { EntropySource, HashAlgorithm, KeyDerivationAlgorithm, SecurityLevel, TokenType }; //# sourceMappingURL=types.js.map