MCPcopy Index your code

hub / github.com/altcha-org/altcha / functions

Functions75 in github.com/altcha-org/altcha

↓ 65 callersFunctionwaitForSelector
( selector: string, options: { text?: string; timeout?: number } = {} )
e2e/helpers.ts:11
↓ 41 callersFunctionhexToBuffer
(hex: string)
src/helpers.ts:37
↓ 36 callersFunctionbufferToHex
(buffer: Uint8Array | ArrayBuffer)
src/helpers.ts:17
↓ 35 callersFunctionrenderWidget
( options: { attributes?: WidgetAttributes; config?: Partial<Configuration>; form?: boolean; workers?
e2e/helpers.ts:45
↓ 19 callersMethodsetCounter
* Appends the counter to the nonce buffer. * In 'string' mode, encodes the counter as a UTF-8 string. * In 'uint32' mode, writes the counter as a
src/pow.ts:52
↓ 13 callersFunctionwaitForVerified
(name: string = 'altcha')
e2e/helpers.ts:32
↓ 9 callersFunctioncreateChallenge
(options: CreateChallengeOptions)
src/pow.ts:67
↓ 9 callersFunctionderiveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/sha.ts:4
↓ 9 callersFunctionhash
(algorithm: string, data: ArrayBuffer | string)
src/helpers.ts:69
↓ 9 callersFunctionhmac
( algorithm: HmacAlgorithm, data: string | Uint8Array, keyStr: string )
src/helpers.ts:79
↓ 7 callersFunctiontimeDuration
(start: number)
src/helpers.ts:144
↓ 7 callersFunctionverifySolution
( options: VerifySolutionOptions )
src/pow.ts:318
↓ 6 callersFunctionlog
(msg: string, data?: any)
src/playground/helpers.ts:4
↓ 6 callersFunctionparseVerificationData
( data: string, convertToArray: string[] = ['fields', 'reasons'] )
src/server-signature.ts:9
↓ 6 callersFunctionsolve
(options?: Partial<CreateChallengeOptions>)
tests/pow.test.ts:234
↓ 5 callersFunctioncheck
(min: number, max: number)
tests/helpers.test.ts:86
↓ 5 callersFunctionsolveChallenge
(options: SolveChallengeOptions)
src/pow.ts:132
↓ 4 callersFunctionconstantTimeEqual
(a: string, b: string)
src/helpers.ts:52
↓ 4 callersFunctiondelay
(ms: number)
e2e/helpers.ts:7
↓ 4 callersFunctionderiveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/pbkdf2.ts:17
↓ 4 callersMethodevict
(buffer: T[])
src/his.ts:105
↓ 4 callersFunctiongetDeriveKeyFunction
(alg: string)
src/playground/tests.ts:27
↓ 4 callersFunctionhandler
(options: { deriveKey: DeriveKeyFunction })
src/workers/shared.ts:4
↓ 4 callersFunctionverifyServerSignature
(options: { payload: ServerSignaturePayload; hmacSecret: string; })
src/server-signature.ts:55
↓ 3 callersFunctionconcatBuffers
(a: Uint8Array, b: Uint8Array)
src/helpers.ts:29
↓ 3 callersFunctionpersistentWritable
(name: string, value?: T)
src/playground/stores.ts:36
↓ 3 callersFunctionsortKeys
(obj: T)
src/helpers.ts:128
↓ 3 callersFunctionssrSafeCustomElements
()
vite.helpers.ts:4
↓ 3 callersFunctionverifyFieldsHash
(options: { formData: FormData | Record<string, unknown>; fields: string[]; fieldsHash: string; algorithm?
src/server-signature.ts:39
↓ 2 callersFunctioncanonicalJSON
(obj: unknown)
src/helpers.ts:24
↓ 2 callersFunctionderiveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/argon2id.ts:4
↓ 2 callersFunctionderiveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/scrypt.ts:4
↓ 2 callersFunctiondispatchPageshow
(persisted = false)
e2e/01-widget/widget.fixture.ts:7
↓ 2 callersFunctiongenerateDts
(options: { distPath: string; packageName: string })
vite.helpers.ts:27
↓ 2 callersFunctiongetWorkerClass
(alg: string)
src/playground/tests.ts:46
↓ 2 callersFunctionsignChallenge
( algorithm: HmacAlgorithm, parameters: ChallengeParameters, derivedKey: Uint8Array | null | undefined, hm
src/pow.ts:290
↓ 2 callersFunctionstore
(defaultValue: T)
src/global.ts:4
↓ 2 callersFunctionsubmitForm
()
e2e/05-auto/auto.fixture.ts:18
↓ 2 callersFunctionterminate
()
src/pow.ts:212
↓ 1 callersMethod#renderClearText
(clearText: string)
src/plugins/obfuscation.plugin.ts:184
↓ 1 callersMethod#wait
(ms: number)
src/plugins/obfuscation.plugin.ts:209
↓ 1 callersMethodattach
()
src/his.ts:95
↓ 1 callersFunctionbufferStartsWith
(buffer: Uint8Array, prefix: Uint8Array)
src/helpers.ts:4
↓ 1 callersFunctioncurrentTime
()
src/playground/helpers.ts:21
↓ 1 callersFunctiondelay
(ms: number)
src/helpers.ts:64
↓ 1 callersFunctiondeobfuscate
( obfuscatedData: string, options: { concurrency?: number; createWorker?: (algorithm: string) => Worker
src/plugins/obfuscation.plugin.ts:16
↓ 1 callersFunctiongetDefaultWidgetOptions
()
src/playground/stores.ts:12
↓ 1 callersFunctiongetDigest
(algorithm: string)
src/algorithms/pbkdf2.ts:3
↓ 1 callersFunctioninjectCss
(css: string, id: string = 'altcha-css', nonce?: string)
src/helpers.ts:103
↓ 1 callersFunctiononOutOfMemory
(c)
src/playground/tests.ts:181
↓ 1 callersFunctionremoveWidget
()
e2e/helpers.ts:94
↓ 1 callersFunctionsolveChallengeWorkers
( options: Omit<SolveChallengeOptions, 'deriveKey'> & { concurrency: number; createWorker: (algorithm: st
src/pow.ts:194
Methodactivate
()
src/plugins/obfuscation.plugin.ts:145
Functionconstructor
(readonly host: HTMLElement & WidgetMethods)
src/plugins/base.plugin.ts:17
Methodconstructor
( readonly nonce: Uint8Array, readonly mode: 'uint32' | 'string' = 'uint32' )
src/pow.ts:38
Methodconstructor
(options: CollectorOptions = {})
src/his.ts:66
Methoddestroy
()
src/his.ts:74
Methoddestroy
()
src/plugins/obfuscation.plugin.ts:155
Methodexport
()
src/his.ts:84
FunctiongenerateBundle
(options, bundle)
vite.config.external.ts:45
FunctiongenerateBundle
(options, bundle)
vite.config.themes.ts:30
Functionglobals
(name)
vite.config.external.ts:66
Functionglobals
(name)
vite.config.i18n-bundle.ts:45
FunctionhookConsoleLog
()
src/playground/helpers.ts:8
Functionobfuscate
( str: string, options: Partial<CreateChallengeOptions> & { counterMax?: number; counterMin?: number;
src/plugins/obfuscation.plugin.ts:91
FunctiononAlgorithmChange
(settings: { algorithm: string; cost: number; counter?: number; keyLength?: number; memoryCost?: number;
src/playground/tests.ts:72
FunctiononFetchChallenge
(source: string | Challenge | null)
src/plugins/base.plugin.ts:23
FunctiononRequestServerVerification
( payload: string, code?: string )
src/plugins/base.plugin.ts:25
MethodonTriggerClick
(ev: MouseEvent)
src/plugins/obfuscation.plugin.ts:176
FunctiononVerify
(value: VerifyOptions)
src/plugins/base.plugin.ts:30
MethodonVerify
(options: VerifyOptions)
src/plugins/obfuscation.plugin.ts:157
FunctionrandomInt
(max: number, min: number = 1)
src/helpers.ts:120
Functionregister
(pluginClass: new (host: HTMLElement & WidgetMethods) => BasePlugin)
src/plugins/base.plugin.ts:11
Functiontransform
(code: string)
vite.helpers.ts:7
FunctionwriteBundle
()
vite.helpers.ts:31