Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/altcha-org/altcha
/ functions
Functions
75 in github.com/altcha-org/altcha
⨍
Functions
75
◇
Types & classes
51
↓ 65 callers
Function
waitForSelector
( selector: string, options: { text?: string; timeout?: number } = {} )
e2e/helpers.ts:11
↓ 41 callers
Function
hexToBuffer
(hex: string)
src/helpers.ts:37
↓ 36 callers
Function
bufferToHex
(buffer: Uint8Array | ArrayBuffer)
src/helpers.ts:17
↓ 35 callers
Function
renderWidget
( options: { attributes?: WidgetAttributes; config?: Partial<Configuration>; form?: boolean; workers?
e2e/helpers.ts:45
↓ 19 callers
Method
setCounter
* 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 callers
Function
waitForVerified
(name: string = 'altcha')
e2e/helpers.ts:32
↓ 9 callers
Function
createChallenge
(options: CreateChallengeOptions)
src/pow.ts:67
↓ 9 callers
Function
deriveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/sha.ts:4
↓ 9 callers
Function
hash
(algorithm: string, data: ArrayBuffer | string)
src/helpers.ts:69
↓ 9 callers
Function
hmac
( algorithm: HmacAlgorithm, data: string | Uint8Array, keyStr: string )
src/helpers.ts:79
↓ 7 callers
Function
timeDuration
(start: number)
src/helpers.ts:144
↓ 7 callers
Function
verifySolution
( options: VerifySolutionOptions )
src/pow.ts:318
↓ 6 callers
Function
log
(msg: string, data?: any)
src/playground/helpers.ts:4
↓ 6 callers
Function
parseVerificationData
( data: string, convertToArray: string[] = ['fields', 'reasons'] )
src/server-signature.ts:9
↓ 6 callers
Function
solve
(options?: Partial<CreateChallengeOptions>)
tests/pow.test.ts:234
↓ 5 callers
Function
check
(min: number, max: number)
tests/helpers.test.ts:86
↓ 5 callers
Function
solveChallenge
(options: SolveChallengeOptions)
src/pow.ts:132
↓ 4 callers
Function
constantTimeEqual
(a: string, b: string)
src/helpers.ts:52
↓ 4 callers
Function
delay
(ms: number)
e2e/helpers.ts:7
↓ 4 callers
Function
deriveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/pbkdf2.ts:17
↓ 4 callers
Method
evict
(buffer: T[])
src/his.ts:105
↓ 4 callers
Function
getDeriveKeyFunction
(alg: string)
src/playground/tests.ts:27
↓ 4 callers
Function
handler
(options: { deriveKey: DeriveKeyFunction })
src/workers/shared.ts:4
↓ 4 callers
Function
verifyServerSignature
(options: { payload: ServerSignaturePayload; hmacSecret: string; })
src/server-signature.ts:55
↓ 3 callers
Function
concatBuffers
(a: Uint8Array, b: Uint8Array)
src/helpers.ts:29
↓ 3 callers
Function
persistentWritable
(name: string, value?: T)
src/playground/stores.ts:36
↓ 3 callers
Function
sortKeys
(obj: T)
src/helpers.ts:128
↓ 3 callers
Function
ssrSafeCustomElements
()
vite.helpers.ts:4
↓ 3 callers
Function
verifyFieldsHash
(options: { formData: FormData | Record<string, unknown>; fields: string[]; fieldsHash: string; algorithm?
src/server-signature.ts:39
↓ 2 callers
Function
canonicalJSON
(obj: unknown)
src/helpers.ts:24
↓ 2 callers
Function
deriveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/argon2id.ts:4
↓ 2 callers
Function
deriveKey
( parameters: ChallengeParameters, salt: Uint8Array, password: Uint8Array )
src/algorithms/scrypt.ts:4
↓ 2 callers
Function
dispatchPageshow
(persisted = false)
e2e/01-widget/widget.fixture.ts:7
↓ 2 callers
Function
generateDts
(options: { distPath: string; packageName: string })
vite.helpers.ts:27
↓ 2 callers
Function
getWorkerClass
(alg: string)
src/playground/tests.ts:46
↓ 2 callers
Function
signChallenge
( algorithm: HmacAlgorithm, parameters: ChallengeParameters, derivedKey: Uint8Array | null | undefined, hm
src/pow.ts:290
↓ 2 callers
Function
store
(defaultValue: T)
src/global.ts:4
↓ 2 callers
Function
submitForm
()
e2e/05-auto/auto.fixture.ts:18
↓ 2 callers
Function
terminate
()
src/pow.ts:212
↓ 1 callers
Method
#renderClearText
(clearText: string)
src/plugins/obfuscation.plugin.ts:184
↓ 1 callers
Method
#wait
(ms: number)
src/plugins/obfuscation.plugin.ts:209
↓ 1 callers
Method
attach
()
src/his.ts:95
↓ 1 callers
Function
bufferStartsWith
(buffer: Uint8Array, prefix: Uint8Array)
src/helpers.ts:4
↓ 1 callers
Function
currentTime
()
src/playground/helpers.ts:21
↓ 1 callers
Function
delay
(ms: number)
src/helpers.ts:64
↓ 1 callers
Function
deobfuscate
( obfuscatedData: string, options: { concurrency?: number; createWorker?: (algorithm: string) => Worker
src/plugins/obfuscation.plugin.ts:16
↓ 1 callers
Function
getDefaultWidgetOptions
()
src/playground/stores.ts:12
↓ 1 callers
Function
getDigest
(algorithm: string)
src/algorithms/pbkdf2.ts:3
↓ 1 callers
Function
injectCss
(css: string, id: string = 'altcha-css', nonce?: string)
src/helpers.ts:103
↓ 1 callers
Function
onOutOfMemory
(c)
src/playground/tests.ts:181
↓ 1 callers
Function
removeWidget
()
e2e/helpers.ts:94
↓ 1 callers
Function
solveChallengeWorkers
( options: Omit<SolveChallengeOptions, 'deriveKey'> & { concurrency: number; createWorker: (algorithm: st
src/pow.ts:194
Method
activate
()
src/plugins/obfuscation.plugin.ts:145
Function
constructor
(readonly host: HTMLElement & WidgetMethods)
src/plugins/base.plugin.ts:17
Method
constructor
( readonly nonce: Uint8Array, readonly mode: 'uint32' | 'string' = 'uint32' )
src/pow.ts:38
Method
constructor
(options: CollectorOptions = {})
src/his.ts:66
Method
destroy
()
src/his.ts:74
Method
destroy
()
src/plugins/obfuscation.plugin.ts:155
Method
export
()
src/his.ts:84
Function
generateBundle
(options, bundle)
vite.config.external.ts:45
Function
generateBundle
(options, bundle)
vite.config.themes.ts:30
Function
globals
(name)
vite.config.external.ts:66
Function
globals
(name)
vite.config.i18n-bundle.ts:45
Function
hookConsoleLog
()
src/playground/helpers.ts:8
Function
obfuscate
( str: string, options: Partial<CreateChallengeOptions> & { counterMax?: number; counterMin?: number;
src/plugins/obfuscation.plugin.ts:91
Function
onAlgorithmChange
(settings: { algorithm: string; cost: number; counter?: number; keyLength?: number; memoryCost?: number;
src/playground/tests.ts:72
Function
onFetchChallenge
(source: string | Challenge | null)
src/plugins/base.plugin.ts:23
Function
onRequestServerVerification
( payload: string, code?: string )
src/plugins/base.plugin.ts:25
Method
onTriggerClick
(ev: MouseEvent)
src/plugins/obfuscation.plugin.ts:176
Function
onVerify
(value: VerifyOptions)
src/plugins/base.plugin.ts:30
Method
onVerify
(options: VerifyOptions)
src/plugins/obfuscation.plugin.ts:157
Function
randomInt
(max: number, min: number = 1)
src/helpers.ts:120
Function
register
(pluginClass: new (host: HTMLElement & WidgetMethods) => BasePlugin)
src/plugins/base.plugin.ts:11
Function
transform
(code: string)
vite.helpers.ts:7
Function
writeBundle
()
vite.helpers.ts:31