INNER CODE UNIT · Go

GenerateSharedJS

benbusby/yeetfile · shared/js.go:53

func GenerateSharedJS() (string, string) {
	jsConsts := fmt.Sprintf(constsJS,
		constants.JSSessionKey,
		constants.IVSize,
		constants.KeySize,
		constants.ChunkSize,
		constants.TotalOverhead,
		constants.MaxTextLen,
		constants.TextIDPrefix,
		constants.FileIDPrefix,
		constants.VerificationCodeLength,
		constants.MaxHintLen,
		constants.MaxPassNoteLen,
		constants.Argon2Iter,
		constants.Argon2Mem)

	jsEndpoints := endpointsHeadJS
	for apiEndpoint, varName := range endpoints.JSVarNameMap {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…